Skip to content

Commit 4e17c8e

Browse files
authoredJan 25, 2021
test: switch to assert.match (#261)
1 parent 5d0cdcd commit 4e17c8e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎test/test.index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import * as assert from 'assert';
2+
import {assert as assetChai} from 'chai';
23
import * as gaxios from 'gaxios';
34
import * as nock from 'nock';
45
import * as sinon from 'sinon';
@@ -443,7 +444,7 @@ describe('linkinator', () => {
443444
});
444445
assert.ok(!results.passed);
445446
const err = results.links[0].failureDetails![0] as Error;
446-
assert.ok(/Nock: Disallowed net connect for/.test(err.message));
447+
assetChai.match(err.message, /Nock: Disallowed net connect for/);
447448
});
448449

449450
it('should respect server root with globs', async () => {

0 commit comments

Comments
 (0)
Please sign in to comment.