Last active
December 28, 2015 16:39
-
-
Save sue445/7530471 to your computer and use it in GitHub Desktop.
jasmineのdescibeの中がテストケースごとに初期化されるか調べてみた
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("num", function(){ | |
var num = 0; | |
it("should == 1 (1st)", function(){ | |
num++; | |
expect(num).toEqual(1); | |
}); | |
it("should == 1 (2nd)", function(){ | |
// 毎回初期化されてるならこのテストも通るはず | |
num++; | |
expect(num).toEqual(1); | |
}); | |
}); |
Author
sue445
commented
Nov 18, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment