|
1 |
| -var palindromes = require('./palindromes') |
| 1 | +const palindromes = require("./palindromes"); |
2 | 2 |
|
3 |
| -describe('palindromes', function() { |
4 |
| - it('works with single words', function() { |
5 |
| - expect(palindromes('racecar')).toEqual(true); |
| 3 | +describe("palindromes", () => { |
| 4 | + it("works with single words", () => { |
| 5 | + expect(palindromes("racecar")).toEqual(true); |
6 | 6 | });
|
7 |
| - xit('works with punctuation', function() { |
8 |
| - expect(palindromes('Racecar!')).toEqual(true); |
| 7 | + it("works with punctuation", () => { |
| 8 | + expect(palindromes("Racecar!")).toEqual(true); |
9 | 9 | });
|
10 |
| - xit('works with multiple words', function() { |
11 |
| - expect(palindromes('A car, a man, a maraca.')).toEqual(true); |
| 10 | + it("works with multiple words", () => { |
| 11 | + expect(palindromes("A car, a man, a maraca.")).toEqual(true); |
12 | 12 | });
|
13 |
| - xit('works with multiple words', function() { |
14 |
| - expect(palindromes('Animal loots foliated detail of stool lamina.')).toEqual(true); |
| 13 | + it("works with multiple words", () => { |
| 14 | + expect( |
| 15 | + palindromes("Animal loots foliated detail of stool lamina.") |
| 16 | + ).toEqual(true); |
15 | 17 | });
|
16 |
| - xit('doesn\'t just always return true', function() { |
17 |
| - expect(palindromes('ZZZZ car, a man, a maraca.')).toEqual(false); |
| 18 | + it("doesn't just always return true", () => { |
| 19 | + expect(palindromes("ZZZZ car, a man, a maraca.")).toEqual(false); |
18 | 20 | });
|
19 |
| - |
20 | 21 | });
|
0 commit comments