Updated the test system
This commit is contained in:
15
test/isLowerCase.test.js
Normal file
15
test/isLowerCase.test.js
Normal file
@ -0,0 +1,15 @@
|
||||
const expect = require('expect');
|
||||
const {isLowerCase} = require('./_30s.js');
|
||||
|
||||
test('isLowerCase is a Function', () => {
|
||||
expect(isLowerCase).toBeInstanceOf(Function);
|
||||
});
|
||||
test('passed string is a lowercase', () => {
|
||||
expect(isLowerCase('abc')).toBeTruthy();
|
||||
});
|
||||
test('passed string is a lowercase', () => {
|
||||
expect(isLowerCase('a3@$')).toBeTruthy();
|
||||
});
|
||||
test('passed value is not a lowercase', () => {
|
||||
expect(isLowerCase('A3@$')).toBeFalsy();
|
||||
});
|
||||
Reference in New Issue
Block a user