Skip to content

Commit 8ffb84b

Browse files
committed
test: use toEqual instead of toMatch
1 parent a8ae690 commit 8ffb84b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/code-context-spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ describe('CodeContext', () => {
1919

2020
describe('fileColonLine when lineNumber is not set', () => {
2121
it('returns the full filepath when fullPath is truthy', () => {
22-
expect(this.codeContext.fileColonLine()).toMatch(testFilePath);
23-
expect(this.codeContext.fileColonLine(true)).toMatch(testFilePath);
22+
expect(this.codeContext.fileColonLine()).toEqual(testFilePath);
23+
expect(this.codeContext.fileColonLine(true)).toEqual(testFilePath);
2424
});
2525

2626
it('returns only the filename and line number when fullPath is falsy', () => {
27-
expect(this.codeContext.fileColonLine(false)).toMatch(testFile);
27+
expect(this.codeContext.fileColonLine(false)).toEqual(testFile);
2828
});
2929
});
3030

0 commit comments

Comments
 (0)