Test cleanup and fixes [o-p]
This commit is contained in:
@ -1,14 +1,12 @@
|
||||
const expect = require('expect');
|
||||
const palindrome = require('./palindrome.js');
|
||||
|
||||
|
||||
test('palindrome is a Function', () => {
|
||||
test('palindrome is a Function', () => {
|
||||
expect(palindrome).toBeInstanceOf(Function);
|
||||
});
|
||||
test('Given string is a palindrome', () => {
|
||||
expect(palindrome('taco cat')).toBe(true)
|
||||
test('Given string is a palindrome', () => {
|
||||
expect(palindrome('taco cat')).toBeTruthy();
|
||||
});
|
||||
test('Given string is not a palindrome', () => {
|
||||
expect(palindrome('foobar')).toBe(false)
|
||||
test('Given string is not a palindrome', () => {
|
||||
expect(palindrome('foobar')).toBeFalsy();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user