Test cleanup and fixes [c-d]

This commit is contained in:
Angelos Chalaris
2018-06-18 16:34:04 +03:00
parent d29974ebc9
commit 105185c213
136 changed files with 805 additions and 484 deletions

View File

@ -5,6 +5,10 @@ const palindrome = require('./palindrome.js');
test('palindrome is a Function', () => {
expect(palindrome).toBeInstanceOf(Function);
});
t.equal(palindrome('taco cat'), true, "Given string is a palindrome");
t.equal(palindrome('foobar'), false, "Given string is not a palindrome");
test('Given string is a palindrome', () => {
expect(palindrome('taco cat')).toBe(true)
});
test('Given string is not a palindrome', () => {
expect(palindrome('foobar')).toBe(false)
});