Updated the test system
This commit is contained in:
9
test/reverseString.test.js
Normal file
9
test/reverseString.test.js
Normal file
@ -0,0 +1,9 @@
|
||||
const expect = require('expect');
|
||||
const {reverseString} = require('./_30s.js');
|
||||
|
||||
test('reverseString is a Function', () => {
|
||||
expect(reverseString).toBeInstanceOf(Function);
|
||||
});
|
||||
test('Reverses a string.', () => {
|
||||
expect(reverseString('foobar')).toBe('raboof');
|
||||
});
|
||||
Reference in New Issue
Block a user