Skip to content

Commit

Permalink
Test/node/narwhal: Update require path, execute QUnit.load()
Browse files Browse the repository at this point in the history
The require path changed during the module refactor, but wasn't updated here.
The QUnit.load() call is currently necessary for any tests to run. This needs
another review.
  • Loading branch information
jzaefferer committed Jan 2, 2014
1 parent 3f29cff commit 52fd37d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions test/narwhal-test.js
@@ -1,6 +1,7 @@
/*jshint node:true, undef:false */
/*globals QUnit:true */
// Run with: $ narwhal test/narwhal-test.js
var QUnit = require("../qunit/qunit");
var QUnit = require("../dist/qunit");

QUnit.log(function(details) {
if (!details.result) {
Expand All @@ -19,5 +20,8 @@ QUnit.test("fail twice with stacktrace", function(assert) {
/*jshint expr:true */
assert.equal(true, false);
assert.equal(true, false, "gotta fail");
x.y.z; // Throws ReferenceError
// Throws ReferenceError
x.y.z;
});

QUnit.load();
8 changes: 6 additions & 2 deletions test/node-test.js
@@ -1,6 +1,7 @@
/*jshint node:true, undef:false */
/*globals QUnit:true */
// Run with: $ node test/node-test.js
var QUnit = require("../qunit/qunit");
var QUnit = require("../dist/qunit");

QUnit.log(function(details) {
if (!details.result) {
Expand All @@ -19,5 +20,8 @@ QUnit.test("fail twice with stacktrace", function(assert) {
/*jshint expr:true */
assert.equal(true, false);
assert.equal(true, false, "gotta fail");
x.y.z; // Throws ReferenceError
// Throws ReferenceError
x.y.z;
});

QUnit.load();

0 comments on commit 52fd37d

Please sign in to comment.