Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix examples: adjust QUnit export path to work with QUnit 1.3.0 or la…

  • Loading branch information...
commit 4799002ae1b9d8a1721da448b98f3dd0d89159d6 1 parent 6de0570
@twada authored
View
2  sample/commonjs/test/incr_test.js
@@ -8,4 +8,4 @@ QUnit.test('increment' , function() {
assert.equal(inc(-3), -2);
});
-QUnit.start();
+// QUnit.start();
View
2  sample/commonjs/test_helper.js
@@ -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");
View
4 sample/interop/test/incr_test.js
@@ -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();
-}
View
4 sample/interop/test/math_test.js
@@ -23,7 +23,3 @@ QUnit.test('add' , function() {
ok(false);
ok(false, 'with message');
});
-
-if ( typeof exports !== "undefined" || typeof require !== "undefined" ) {
- QUnit.start();
-}
View
4 sample/interop/test/tap_compliance_test.js
@@ -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();
-}
View
2  sample/interop/test_helper.js
@@ -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");
Please sign in to comment.
Something went wrong with that request. Please try again.