Search Results for: String instruments
how i make some example test in node.js. run through the runner, swears "no define run", i try 'qunit' swears "no define funciton test" function trim(string) { return (string || "").replace(/^\s+|\s+$/g, ""); } qunit.test("тест функции trim()", function() { assert.ok(trim(' test ') == 'test', 'обрезаем
output += "expected: " + details.expected + ", actual: " + details.actual; } if (details.source) { output += ", " + details.source; } print(output); }); qunit.module( "first test"); qunit.test( "ok test", function( assert ) { assert.ok( true, "true succeeds" ); assert.ok( "non-empty", "non-empty string...
https://gitter.im/qunitjs/qunit