@@ -43,11 +43,11 @@ describe('path', () => {
4343
4444 // Assert
4545 expect ( filter ) . toBeValid ( ) ;
46- expect ( filter ) . toMatchTaskWithPath ( '/ some/path/wibble.md' ) ;
47- expect ( filter ) . toMatchTaskWithPath ( '/ some/path/wobble.md' ) ;
46+ expect ( filter ) . toMatchTaskWithPath ( 'some/path/wibble.md' ) ;
47+ expect ( filter ) . toMatchTaskWithPath ( 'some/path/wobble.md' ) ;
4848 expect ( filter ) . not . toMatchTaskWithPath ( '' ) ;
49- expect ( filter ) . not . toMatchTaskWithPath ( '/ some/path/WobblE.md' ) ; // confirm case-sensitive
50- expect ( filter ) . not . toMatchTaskWithPath ( '/ other/path/file.md' ) ;
49+ expect ( filter ) . not . toMatchTaskWithPath ( 'some/path/WobblE.md' ) ; // confirm case-sensitive
50+ expect ( filter ) . not . toMatchTaskWithPath ( 'other/path/file.md' ) ;
5151 } ) ;
5252
5353 it ( 'by path (regex matches) with flags' , ( ) => {
@@ -56,11 +56,11 @@ describe('path', () => {
5656
5757 // Assert
5858 expect ( filter ) . toBeValid ( ) ;
59- expect ( filter ) . toMatchTaskWithPath ( '/ some/path/wibble.md' ) ;
60- expect ( filter ) . toMatchTaskWithPath ( '/ some/path/wobble.md' ) ;
59+ expect ( filter ) . toMatchTaskWithPath ( 'some/path/wibble.md' ) ;
60+ expect ( filter ) . toMatchTaskWithPath ( 'some/path/wobble.md' ) ;
6161 expect ( filter ) . not . toMatchTaskWithPath ( '' ) ;
62- expect ( filter ) . toMatchTaskWithPath ( '/ some/path/WobblE.md' ) ; // confirm case-insensitive (flag)
63- expect ( filter ) . not . toMatchTaskWithPath ( '/ other/path/file.md' ) ;
62+ expect ( filter ) . toMatchTaskWithPath ( 'some/path/WobblE.md' ) ; // confirm case-insensitive (flag)
63+ expect ( filter ) . not . toMatchTaskWithPath ( 'other/path/file.md' ) ;
6464 } ) ;
6565
6666 it ( 'by path (regex does not match)' , ( ) => {
@@ -69,11 +69,11 @@ describe('path', () => {
6969
7070 // Assert
7171 expect ( filter ) . toBeValid ( ) ;
72- expect ( filter ) . not . toMatchTaskWithPath ( '/ some/path/wibble.md' ) ;
73- expect ( filter ) . not . toMatchTaskWithPath ( '/ some/path/wobble.md' ) ;
72+ expect ( filter ) . not . toMatchTaskWithPath ( 'some/path/wibble.md' ) ;
73+ expect ( filter ) . not . toMatchTaskWithPath ( 'some/path/wobble.md' ) ;
7474 expect ( filter ) . toMatchTaskWithPath ( '' ) ;
75- expect ( filter ) . toMatchTaskWithPath ( '/ some/path/WobblE.md' ) ; // confirm case-sensitive
76- expect ( filter ) . toMatchTaskWithPath ( '/ other/path/file.md' ) ;
75+ expect ( filter ) . toMatchTaskWithPath ( 'some/path/WobblE.md' ) ; // confirm case-sensitive
76+ expect ( filter ) . toMatchTaskWithPath ( 'other/path/file.md' ) ;
7777 } ) ;
7878} ) ;
7979
@@ -88,8 +88,8 @@ describe('should use whole path with un-escaped slashes in query', () => {
8888 } ) ;
8989
9090 it ( 'should match the requested path' , ( ) => {
91- expect ( filterWithUnescapedSlashes ) . toMatchTaskWithPath ( '/ a/b/c/d/e.md' ) ;
92- expect ( filterWithUnescapedSlashes ) . not . toMatchTaskWithPath ( '/ a/b.md' ) ;
91+ expect ( filterWithUnescapedSlashes ) . toMatchTaskWithPath ( 'a/b/c/d/e.md' ) ;
92+ expect ( filterWithUnescapedSlashes ) . not . toMatchTaskWithPath ( 'a/b.md' ) ;
9393 } ) ;
9494} ) ;
9595
0 commit comments