Additional tests

This commit is contained in:
Angelos Chalaris
2018-10-31 20:41:38 +02:00
parent 53151c01e5
commit abd66ccc0a
5 changed files with 21 additions and 1 deletions

View File

@ -4,3 +4,9 @@ const {removeVowels} = require('./_30s.js');
test('removeVowels is a Function', () => {
expect(removeVowels).toBeInstanceOf(Function);
});
test('Removes vowels.', () => {
expect(removeVowels('foobAr')).toBe('fbr');
});
test('Replaces vowels.', () => {
expect(removeVowels('foobAr', '*')).toBe('f**b*r');
});