Skip to content

Instantly share code, notes, and snippets.

@pdtaylor
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pdtaylor/3a7d53a1bdbc76f2566c to your computer and use it in GitHub Desktop.
Save pdtaylor/3a7d53a1bdbc76f2566c to your computer and use it in GitHub Desktop.
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