Test cleanup and fixes [i-l]

This commit is contained in:
Angelos Chalaris
2018-06-18 17:31:56 +03:00
parent 7e9aae6f13
commit 71d768320b
59 changed files with 358 additions and 452 deletions

View File

@ -1,17 +1,15 @@
const expect = require('expect');
const isLowerCase = require('./isLowerCase.js');
test('isLowerCase is a Function', () => {
test('isLowerCase is a Function', () => {
expect(isLowerCase).toBeInstanceOf(Function);
});
test('passed string is a lowercase', () => {
expect(isLowerCase('abc')).toBe(true)
test('passed string is a lowercase', () => {
expect(isLowerCase('abc')).toBeTruthy();
});
test('passed string is a lowercase', () => {
expect(isLowerCase('a3@$')).toBe(true)
test('passed string is a lowercase', () => {
expect(isLowerCase('a3@$')).toBeTruthy();
});
test('passed value is not a lowercase', () => {
expect(isLowerCase('A3@$')).toBe(false)
test('passed value is not a lowercase', () => {
expect(isLowerCase('A3@$')).toBeFalsy();
});