Skip to content

Commit

Permalink
fix examples: adjust QUnit export path to work with QUnit 1.3.0 or la…
Browse files Browse the repository at this point in the history
  • Loading branch information
twada committed Mar 18, 2012
1 parent 6de0570 commit 4799002
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 15 deletions.
2 changes: 1 addition & 1 deletion sample/commonjs/test/incr_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ QUnit.test('increment' , function() {
assert.equal(inc(-3), -2);
});

QUnit.start();
// QUnit.start();
2 changes: 1 addition & 1 deletion sample/commonjs/test_helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var tryRequireThese = function() {
throw new Error("cannot find module: " + args);
};

QUnit = require("../../vendor/qunit/qunit/qunit").QUnit;
QUnit = require("../../vendor/qunit/qunit/qunit");
var qunitTap = require("../../lib/qunit-tap").qunitTap;

var sys = tryRequireThese("util", "sys", "system");
Expand Down
4 changes: 0 additions & 4 deletions sample/interop/test/incr_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,3 @@ QUnit.test('increment' , function() {
equal(inc(1), 2);
equal(inc(-3), -2);
});

if ( typeof exports !== "undefined" || typeof require !== "undefined" ) {
QUnit.start();
}
4 changes: 0 additions & 4 deletions sample/interop/test/math_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,3 @@ QUnit.test('add' , function() {
ok(false);
ok(false, 'with message');
});

if ( typeof exports !== "undefined" || typeof require !== "undefined" ) {
QUnit.start();
}
4 changes: 0 additions & 4 deletions sample/interop/test/tap_compliance_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,3 @@ QUnit.test('Diagnostic lines' , function() {
equal("foo\nbar", "foo\r\nbar", "with\r\nmultiline\nmessage");
equal("foo\r\nbar", "foo\nbar", "with\r\nmultiline\nmessage");
});

if ( typeof exports !== "undefined" || typeof require !== "undefined" ) {
QUnit.start();
}
2 changes: 1 addition & 1 deletion sample/interop/test_helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var tryRequireThese = function() {
throw new Error("cannot find module: " + args);
};

QUnit = require("../../vendor/qunit/qunit/qunit").QUnit;
QUnit = require("../../vendor/qunit/qunit/qunit");
var qunitTap = require("../../lib/qunit-tap").qunitTap;

var sys = tryRequireThese("util", "sys", "system");
Expand Down

0 comments on commit 4799002

Please sign in to comment.