This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| it("should be able to tell if a number is even",function() { | |
| expect(utils.isEven).toBeDefined(); | |
| expect(utils.isEven(2)).toBeTruthy(); | |
| expect(utils.isEven(1)).toBeFalsy(); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| it("should be able to tell if a number is even",function() { | |
| expect(utils.isEven).toBeDefined(); | |
| expect(utils.isEven(2)).toBeTruthy(); | |
| expect(utils.isEven(1)).toBeFalsy(); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| it("should be able to tell if a number is even",function() { | |
| expect(utils.isEven).toBeDefined(); | |
| expect(utils.isEven(2)).toBeTruthy(); | |
| expect(utils.isEven(1)).toBeFalsy(); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| describe(">String Utils", function() { | |
| it("should be able to lower case a string",function() { | |
| expect(utils.toLowerCase).toBeDefined(); | |
| expect(utils.toLowerCase("HELLO WORLD")).toEqual("hello world"); | |
| }); | |
| it("should be able to upper case a string",function() { | |
| expect(utils.toUpperCase).toBeDefined(); | |
| expect(utils.toUpperCase("hello world")).toEqual("HELLO WORLD"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| it("should be able to lower case a string",function() { | |
| expect(utils.toLowerCase).toBeDefined(); | |
| expect(utils.toLowerCase("HELLO WORLD")).toEqual("hello world"); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const utils = require("../index.js"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| describe("MyJSUtilities", function() { | |
| describe(">String Utils", function() { | |
| it("should be able to lower case a string",function() { | |
| expect().nothing(); | |
| }); | |
| it("should be able to upper case a string",function() { | |
| expect().nothing(); | |
| }); | |
| it("should be able to confirm if a string contains a substring",function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| describe("MyJSUtilities", function() { | |
| describe(">String Utils", function() { | |
| it("should be able to lower case a string",function() { | |
| expect().nothing(); | |
| }); | |
| it("should be able to upper case a string",function() { | |
| expect().nothing(); | |
| }); | |
| it("should be able to confirm if a string contains a substring",function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| describe("Advanced Math Utils", function() { | |
| it("should be able to tell if a number is prime",function() { | |
| /*...*/ | |
| }); | |
| it("should be able to calculate the fibonacci of a number",function() { | |
| /*...*/ | |
| }); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| describe("Basic Math Utils", function() { | |
| it("should be able to tell if a number is even",function() { | |
| /*...*/ | |
| }); | |
| it("should be able to tell if a number is odd",function() { | |
| /*...*/ | |
| }); | |
| }); |