diff --git a/src/isIsogram.test.js b/src/isIsogram.test.js index dfb16184..ebe795ba 100644 --- a/src/isIsogram.test.js +++ b/src/isIsogram.test.js @@ -6,4 +6,28 @@ describe('isIsogram', () => { it(`should be declared`, () => { expect(isIsogram).toBeInstanceOf(Function); }); + + it(`should return true for an empty string`, () => { + expect(isIsogram('')).toBeTruthy(); + }); + + it(`should return true for 'playgrounds'`, () => { + expect(isIsogram('playgrounds')).toBeTruthy(); + }); + + it(`should return false for 'look'`, () => { + expect(isIsogram('look')).toBeFalsy(); + }); + + it(`should return false for 'Adam'`, () => { + expect(isIsogram('Adam')).toBeFalsy(); + }); + + it(`should return false for 'Oops'`, () => { + expect(isIsogram('Oops')).toBeFalsy(); + }); + + it(`should return true for 'isogram'`, () => { + expect(isIsogram('isogram')).toBeTruthy(); + }); });