Test cleanup and fixes [c-d]
This commit is contained in:
@ -5,5 +5,7 @@ const escapeRegExp = require('./escapeRegExp.js');
|
||||
test('escapeRegExp is a Function', () => {
|
||||
expect(escapeRegExp).toBeInstanceOf(Function);
|
||||
});
|
||||
t.equal(escapeRegExp('(test)'), '\\(test\\)', "Escapes a string to use in a regular expression");
|
||||
test('Escapes a string to use in a regular expression', () => {
|
||||
expect(escapeRegExp('(test)')).toBe('\\(test\\)')
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user