tracks/ecmascript/exercises/word-count/word-count.spec.js in trackler-2.1.0.53 vs tracks/ecmascript/exercises/word-count/word-count.spec.js in trackler-2.1.0.54

- old
+ new

@@ -1,65 +1,65 @@ import Words from './word-count'; describe('words()', () => { let words = new Words(); - it('counts one word', () => { + test('counts one word', () => { const expectedCounts = { word: 1 }; expect(words.count('word')).toEqual(expectedCounts); }); - xit('counts one of each', () => { + xtest('counts one of each', () => { const expectedCounts = { one: 1, of: 1, each: 1 }; expect(words.count('one of each')).toEqual(expectedCounts); }); - xit('counts multiple occurrences', () => { + xtest('counts multiple occurrences', () => { const expectedCounts = { one: 1, fish: 4, two: 1, red: 1, blue: 1 }; expect(words.count('one fish two fish red fish blue fish')).toEqual(expectedCounts); }); - xit('includes punctuation', () => { + xtest('includes punctuation', () => { const expectedCounts = { car: 1, ':': 2, carpet: 1, as: 1, java: 1, 'javascript!!&@$%^&': 1 }; expect(words.count('car : carpet as java : javascript!!&@$%^&')).toEqual(expectedCounts); }); - xit('includes numbers', () => { + xtest('includes numbers', () => { const expectedCounts = { testing: 2, 1: 1, 2: 1 }; expect(words.count('testing 1 2 testing')).toEqual(expectedCounts); }); - xit('normalizes to lower case', () => { + xtest('normalizes to lower case', () => { const expectedCounts = { go: 3 }; expect(words.count('go Go GO')).toEqual(expectedCounts); }); - xit('counts properly international characters', () => { + xtest('counts properly international characters', () => { const expectedCounts = { '¡hola!': 1, '¿qué': 1, 'tal?': 1, 'привет!': 1 }; expect(words.count('¡Hola! ¿Qué tal? Привет!')).toEqual(expectedCounts); }); - xit('counts multiline', () => { + xtest('counts multiline', () => { const expectedCounts = { hello: 1, world: 1 }; expect(words.count('hello\nworld')).toEqual(expectedCounts); }); - xit('counts tabs', () => { + xtest('counts tabs', () => { const expectedCounts = { hello: 1, world: 1 }; expect(words.count('hello\tworld')).toEqual(expectedCounts); }); - xit('counts multiple spaces as one', () => { + xtest('counts multiple spaces as one', () => { const expectedCounts = { hello: 1, world: 1 }; expect(words.count('hello world')).toEqual(expectedCounts); }); - xit('does not count leading or trailing whitespace', () => { + xtest('does not count leading or trailing whitespace', () => { const expectedCounts = { introductory: 1, course: 1 }; expect(words.count('\t\tIntroductory Course ')).toEqual(expectedCounts); }); - xit('handles properties that exist on Object’s prototype', () => { + xtest('handles properties that exist on Object’s prototype', () => { const expectedCounts = { reserved: 1, words : 1, like :1, constructor: 1, and : 1, tostring: 1, 'ok?': 1}; expect(words.count('reserved words like constructor and toString ok?')).toEqual(expectedCounts); }); });