Skip to content

Instantly share code, notes, and snippets.

@MilanGrubnic70
Created January 24, 2016 05:02
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 MilanGrubnic70/52474315ef6e47fe3b84 to your computer and use it in GitHub Desktop.
Save MilanGrubnic70/52474315ef6e47fe3b84 to your computer and use it in GitHub Desktop.
Jasmine: The Basic Structure of a Suite
describe("colors", function() {
describe("red", function() {
var red;
beforeEach(function() {
red = new Color("red");
});
afterEach(function() {
red = null;
});
it("has the correct value", function() {
expect(red.hex).toEqual("FF0000");
});
it("makes orange when mixed with yellow", function() {
var yellow = new Color("yellow");
var orange = new Color("orange");
expect(red.mix(yellow)).toEqual(orange);
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment