File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -31,13 +31,13 @@ describe('CodeContext', () => {
31
31
describe ( 'fileColonLine when lineNumber is set' , ( ) => {
32
32
it ( 'returns the full filepath when fullPath is truthy' , ( ) => {
33
33
this . codeContext . lineNumber = 42 ;
34
- expect ( this . codeContext . fileColonLine ( ) ) . toMatch ( testFilePath ) ;
35
- expect ( this . codeContext . fileColonLine ( true ) ) . toMatch ( testFilePath ) ;
34
+ expect ( this . codeContext . fileColonLine ( ) ) . toEqual ( ` ${ testFilePath } :42` ) ;
35
+ expect ( this . codeContext . fileColonLine ( true ) ) . toEqual ( ` ${ testFilePath } :42` ) ;
36
36
} ) ;
37
37
38
38
it ( 'returns only the filename and line number when fullPath is falsy' , ( ) => {
39
39
this . codeContext . lineNumber = 42 ;
40
- expect ( this . codeContext . fileColonLine ( false ) ) . toMatch ( testFile ) ;
40
+ expect ( this . codeContext . fileColonLine ( false ) ) . toEqual ( ` ${ testFile } :42` ) ;
41
41
} ) ;
42
42
} ) ;
43
43
You can’t perform that action at this time.
0 commit comments