|
Unit.js is an open source unit testing framework for the JavaScript programming language.〔http://unitjs.com〕 == Usage == A simple hello world test looks like the code below. var example = 'Hello world!'; test.string(example) .isEqualTo('Hello world!'); Support describe() and it(), describes a suite of tests and it() is an individual test specification. The name "it()" follows the idea of behavior-driven development and serves as the first word in the test name, which should be a complete sentence. describe('Hello world', function() ); 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「Unit.js」の詳細全文を読む スポンサード リンク
|