Permalink
Browse files

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

  • Loading branch information...
1 parent 6de0570 commit 4799002ae1b9d8a1721da448b98f3dd0d89159d6 @twada committed Mar 18, 2012
@@ -8,4 +8,4 @@ QUnit.test('increment' , function() {
assert.equal(inc(-3), -2);
});
-QUnit.start();
+// QUnit.start();
@@ -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");
@@ -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();
-}
@@ -23,7 +23,3 @@ QUnit.test('add' , function() {
ok(false);
ok(false, 'with message');
});
-
-if ( typeof exports !== "undefined" || typeof require !== "undefined" ) {
- QUnit.start();
-}
@@ -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();
-}
@@ -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");

0 comments on commit 4799002

Please sign in to comment.