首页| 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
  • IATWAY 2小时前 成为了本站会员

  • 大智若愚 8小时前 成为了本站会员

  • Mason 11小时前 成为了本站会员

  • 11小时前 成为了本站会员

  • Half_Punch 1天前 成为了本站会员

  • liqing71718 1天前 成为了本站会员

  • 伟国 1天前 成为了本站会员

  • songy 1天前 成为了本站会员

  • 纯色幽默 1天前 成为了本站会员

  • odd? 1天前 成为了本站会员

0.214685s