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', () => {
3131 describe ( 'fileColonLine when lineNumber is set' , ( ) => {
3232 it ( 'returns the full filepath when fullPath is truthy' , ( ) => {
3333 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` ) ;
3636 } ) ;
3737
3838 it ( 'returns only the filename and line number when fullPath is falsy' , ( ) => {
3939 this . codeContext . lineNumber = 42 ;
40- expect ( this . codeContext . fileColonLine ( false ) ) . toMatch ( testFile ) ;
40+ expect ( this . codeContext . fileColonLine ( false ) ) . toEqual ( ` ${ testFile } :42` ) ;
4141 } ) ;
4242 } ) ;
4343
You can’t perform that action at this time.
0 commit comments