Created
January 24, 2016 05:02
-
-
Save MilanGrubnic70/52474315ef6e47fe3b84 to your computer and use it in GitHub Desktop.
Jasmine: The Basic Structure of a Suite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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