Skip to content

Instantly share code, notes, and snippets.

@pdtaylor
Last active August 29, 2015 14:14
Embed
What would you like to do?
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