Skip to content

Instantly share code, notes, and snippets.

@pdtaylor

pdtaylor/example1-test.js

Last active Aug 29, 2015
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
You can’t perform that action at this time.