Skip to content

Commit 6a3120f

Browse files
committed
Fix test for test filter
1 parent cb32d86 commit 6a3120f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/spec/filter/string/test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ describe('testFilter', function () {
1616
expect(filter('foobarbaz', '^[a-z]{3,}$')).toEqual(true);
1717
expect(filter('FOOBARBAZ', '^[a-z]{3,}$', 'i')).toEqual(true);
1818
expect(filter('FOOBARBAZ', '^[a-z]{3,}$')).toEqual(false);
19-
expect(filter('foobarbaz', '\W')).toEqual(false);
19+
expect(filter('foobarbaz', '\\W')).toEqual(false);
20+
expect(filter('foobarbaz', '\\w')).toEqual(true);
2021
expect(filter('1a/bb/2003', '^[0-9]{2}[/]{1}[0-9]{2}[/]{1}[0-9]{4}$', 'i')).toEqual(false);
2122

2223
});

0 commit comments

Comments
 (0)