Test cleanup and fixes [q-r]
This commit is contained in:
@ -1,11 +1,9 @@
|
||||
const expect = require('expect');
|
||||
const reverseString = require('./reverseString.js');
|
||||
|
||||
|
||||
test('reverseString is a Function', () => {
|
||||
test('reverseString is a Function', () => {
|
||||
expect(reverseString).toBeInstanceOf(Function);
|
||||
});
|
||||
test('Reverses a string.', () => {
|
||||
expect(reverseString('foobar')).toBe('raboof')
|
||||
test('Reverses a string.', () => {
|
||||
expect(reverseString('foobar')).toBe('raboof');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user