Updated the test system
This commit is contained in:
10
test/cloneRegExp.test.js
Normal file
10
test/cloneRegExp.test.js
Normal file
@ -0,0 +1,10 @@
|
||||
const expect = require('expect');
|
||||
const {cloneRegExp} = require('./_30s.js');
|
||||
|
||||
test('cloneRegExp is a Function', () => {
|
||||
expect(cloneRegExp).toBeInstanceOf(Function);
|
||||
});
|
||||
const rgTest = /./g;
|
||||
test('Clones regular expressions properly', () => {
|
||||
expect(cloneRegExp(rgTest)).not.toBe(rgTest);
|
||||
});
|
||||
Reference in New Issue
Block a user