Example 1 Test
describe("The selectAnimal function", function(){ | |
it("should return Cat"){ | |
expect(window.myLib.selectAnimal("c")).toBe("Cat"); | |
}; | |
it("should return Dog"){ | |
expect(window.myLib.selectAnimal("d")).toBe("Dog"); | |
}; | |
it("should return unknown"){ | |
expect(window.myLib.selectAnimal()).toBe("unknown"); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment