Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions .eslintrc.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 10 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# IDE
.idea
.vscode

# Node
node_modules

# MacOS
.DS_Store
# IDE
.idea
.vscode

# Node
node_modules

# MacOS
.DS_Store
config.bat
26 changes: 23 additions & 3 deletions src/isIsogram.test.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,29 @@
'use strict';
"use strict";

describe('isIsogram', () => {
const { isIsogram } = require('./isIsogram');
describe("isIsogram", () => {
const { isIsogram } = require("./isIsogram");

it(`should be declared`, () => {
expect(isIsogram).toBeInstanceOf(Function);
});

it(`should return true for 'playgrounds'`, () => {
expect(isIsogram("playgrounds")).toBe(true);
});

it(`should return false for 'look'`, () => {
expect(isIsogram("look")).toBe(false);
});

it(`should return false for 'Adam'`, () => {
expect(isIsogram("Adam")).toBe(false);
});

it("should be return true for empty string", () => {
expect(isIsogram("")).toBe(true);
});

it("should be return false for (Oops) ", () => {
expect(isIsogram("Oops")).toBe(false);
});
});
Loading