Additional tests
This commit is contained in:
@ -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');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user