Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe("isOddOrEven", () => {
- it("Passing number as a parameter => undefined ", () => {
- expect(isOddOrEven(2)).to.equal(undefined, "Function did nt return the correct result!");
- });
- it("Passing object as a parameter => undefined ", () => {
- expect(isOddOrEven({ name: 'Zarine' })).to.equal(undefined, "Function did nt return the correct result!");
- });
- it("Passing even string => even ", () => {
- expect(isOddOrEven('toni')).to.equal("even", "Function did nt return the correct result!");
- });
- it("Passing odd string => odd ", () => {
- expect(isOddOrEven('ton')).to.equal("odd", "Function did nt return the correct result!");
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement