Home page Forum Wiki Mail Jabber Devel NIX-FILES

AltLUG Git

Git-repositories of Altai Linux User Group

Mini lint commit
[qunit.git] / test / narwhal-test.js
1 // run with
2 // node test/node-test.js
3 var QUnit = require("../qunit/qunit");
4
5 QUnit.log(function(details) {
6         if (!details.result) {
7                 var output = "FAILED: " + (details.message ? details.message + ", " : "");
8                 if (details.actual) {
9                         output += "expected: " + details.expected + ", actual: " + details.actual;
10                 }
11                 if (details.source) {
12                         output += ", " + details.source;
13                 }
14                 print(output);
15         } else {
16                 print("ok!");
17         }
18 });
19
20 QUnit.test("fail twice with stacktrace", function(assert) {
21         /*jshint expr:true */
22         assert.equal(true, false);
23         assert.equal(true, false, "gotta fail");
24         x.y.z; // Throws ReferenceError
25 });

Hosting is provided AltSPAHow to use Git
Please direct any questions on jabber alex.wolf@jabber.ru

Valid HTML 4.0 Transitional Valid CSS!

Designer Alexander Wolf