We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
assert.match
1 parent 5d0cdcd commit 4e17c8eCopy full SHA for 4e17c8e
test/test.index.ts
@@ -1,4 +1,5 @@
1
import * as assert from 'assert';
2
+import {assert as assetChai} from 'chai';
3
import * as gaxios from 'gaxios';
4
import * as nock from 'nock';
5
import * as sinon from 'sinon';
@@ -443,7 +444,7 @@ describe('linkinator', () => {
443
444
});
445
assert.ok(!results.passed);
446
const err = results.links[0].failureDetails![0] as Error;
- assert.ok(/Nock: Disallowed net connect for/.test(err.message));
447
+ assetChai.match(err.message, /Nock: Disallowed net connect for/);
448
449
450
it('should respect server root with globs', async () => {
0 commit comments