Skip to content
This repository
Browse code

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

  • Loading branch information...
commit 4799002ae1b9d8a1721da448b98f3dd0d89159d6 1 parent 6de0570
Takuto Wada authored March 18, 2012
2  sample/commonjs/test/incr_test.js
@@ -8,4 +8,4 @@ QUnit.test('increment' , function() {
8 8
                assert.equal(inc(-3), -2);
9 9
            });
10 10
 
11  
-QUnit.start();
  11
+// QUnit.start();
2  sample/commonjs/test_helper.js
@@ -12,7 +12,7 @@ var tryRequireThese = function() {
12 12
     throw new Error("cannot find module: " + args);
13 13
 };
14 14
 
15  
-QUnit = require("../../vendor/qunit/qunit/qunit").QUnit;
  15
+QUnit = require("../../vendor/qunit/qunit/qunit");
16 16
 var qunitTap = require("../../lib/qunit-tap").qunitTap;
17 17
 
18 18
 var sys = tryRequireThese("util", "sys", "system");
4  sample/interop/test/incr_test.js
@@ -11,7 +11,3 @@ QUnit.test('increment' , function() {
11 11
          equal(inc(1), 2);
12 12
          equal(inc(-3), -2);
13 13
      });
14  
-
15  
-if ( typeof exports !== "undefined" || typeof require !== "undefined" ) {
16  
-    QUnit.start();
17  
-}
4  sample/interop/test/math_test.js
@@ -23,7 +23,3 @@ QUnit.test('add' , function() {
23 23
          ok(false);
24 24
          ok(false, 'with message');
25 25
      });
26  
-
27  
-if ( typeof exports !== "undefined" || typeof require !== "undefined" ) {
28  
-    QUnit.start();
29  
-}
4  sample/interop/test/tap_compliance_test.js
@@ -11,7 +11,3 @@ QUnit.test('Diagnostic lines' , function() {
11 11
                equal("foo\nbar", "foo\r\nbar", "with\r\nmultiline\nmessage");
12 12
                equal("foo\r\nbar", "foo\nbar", "with\r\nmultiline\nmessage");
13 13
            });
14  
-
15  
-if ( typeof exports !== "undefined" || typeof require !== "undefined" ) {
16  
-    QUnit.start();
17  
-}
2  sample/interop/test_helper.js
@@ -12,7 +12,7 @@ var tryRequireThese = function() {
12 12
     throw new Error("cannot find module: " + args);
13 13
 };
14 14
 
15  
-QUnit = require("../../vendor/qunit/qunit/qunit").QUnit;
  15
+QUnit = require("../../vendor/qunit/qunit/qunit");
16 16
 var qunitTap = require("../../lib/qunit-tap").qunitTap;
17 17
 
18 18
 var sys = tryRequireThese("util", "sys", "system");

0 notes on commit 4799002

Please sign in to comment.
Something went wrong with that request. Please try again.