Additional tests

This commit is contained in:
Angelos Chalaris
2018-10-26 21:26:34 +03:00
parent 6090836233
commit 0ba22da4b0
4 changed files with 27 additions and 0 deletions

View File

@ -4,3 +4,9 @@ const {countVowels} = require('./_30s.js');
test('countVowels is a Function', () => {
expect(countVowels).toBeInstanceOf(Function);
});
test('countVowels returns the correct count', () => {
expect(countVowels('foobar')).toBe(3);
});
test('countVowels returns the correct count', () => {
expect(countVowels('ggg')).toBe(0);
});