Created
December 7, 2010 10:27
-
-
Save juno/731652 to your computer and use it in GitHub Desktop.
beforeEachを使った例。
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
/** | |
* Array クラスのテスト | |
*/ | |
describe('Array クラスは', function() { | |
var arr = null; | |
beforeEach(function() { | |
arr = [1, 2, 3]; | |
}); | |
it('length プロパティで配列長を取得する事ができる', function() { | |
expect(arr.length).toEqual(3); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment