-
Notifications
You must be signed in to change notification settings - Fork 779
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build: Support Node.js export parity with CommonJS
Ref #521 More info: #521 (comment)
- Loading branch information
1 parent
403897f
commit 56279ad
Showing
4 changed files
with
26 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/*jshint node:true */ | ||
(function() { | ||
|
||
QUnit.module( "globals for Node.js only" ); | ||
|
||
QUnit.test( "QUnit exports", function( assert ) { | ||
var qunit = require( "../dist/qunit" ); | ||
|
||
assert.ok( qunit, "Required module QUnit truthy" ); | ||
assert.strictEqual( qunit, QUnit, "Required module QUnit matches global QUnit" ); | ||
|
||
assert.ok( qunit.hasOwnProperty( "QUnit" ), "Required module QUnit has property QUnit" ); | ||
assert.strictEqual( | ||
qunit.QUnit, | ||
qunit, | ||
"Required module QUnit's property QUnit is self-referencing" | ||
); | ||
}); | ||
|
||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters