首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > JavaScript > jsspec给你通过BDD的土地使用JavaScript一个愉快的车程。你永远不会回头,满足保证!

jsspec给你通过BDD的土地使用JavaScript一个愉快的车程。你永远不会回头,满足保证!

资 源 简 介

JsSpec tries to bring behaviour driven development to JavaScript by somewhat mimicking what rspec does in ruby. ``` with (Spec) { describe("A newly created Tic-Tac-Toe", function() { with (this) { before("each", function() { this.game = new TicTacToe(); }); it("should have 9 empty cells", function() { this.game.cells.should(have(9, "items")); this.game.cells.each(function(cell) { cell.should( be(undefined) ); }); }); it("should have 0 players", function() { this.game.should( have(0, "players") ); }); }}); } Specs.run(); ``` Real docs coming soon, look at the README file in the downloadable package or the running example in spec/index.html

文 件 列 表

js_spec-0.2.2
._CHANGELOG
CHANGELOG
LICENSE
._README
README
._Rakefile
Rakefile
dist
lib
spec
src

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.180676s