ds-algo-study
Version:
Just experimenting with publishing a package
18 lines (13 loc) • 426 B
JavaScript
const vowels = require('./index');
test('Vowels is a function', () => {
expect(typeof vowels).toEqual('function');
});
test('returns the number of vowels used', () => {
expect(vowels('aeiou')).toEqual(5);
});
test('returns the number of vowels used', () => {
expect(vowels('abcdefghijklmnopqrstuvwxyz')).toEqual(5);
});
test('returns the number of vowels used', () => {
expect(vowels('bcdfghjkl')).toEqual(0);
});