Skip to content

Commit

Permalink
always put proxyFixtures on the QUnit object
Browse files Browse the repository at this point in the history
  • Loading branch information
jakecraige committed Nov 4, 2014
1 parent ab53e68 commit 837100e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
3 changes: 1 addition & 2 deletions lib/qunit.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ var proxyFixtures = function proxyFixtures(name) {
});
};

QUnit.proxyFixtures = proxyFixtures;
if(typeof module !== 'undefined' && typeof module.exports !== 'undefined') {
module.exports = proxyFixtures;
} else {
QUnit.proxyFixtures = proxyFixtures;
}
11 changes: 6 additions & 5 deletions tests/unit/qunit-test.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
// Sinon must be required prior to resetGloals being called. This is because
// resetGlobals sets the `window` object and sinon will pick it up and think
// it's in the browser
var sinon = require('sinon');

resetGlobals();
var assert = require('assert');
var sinon = require('sinon');
var proxyFixtures = require('../../lib/qunit');

describe('QUnit Injection', function() {
before(function() {
resetGlobals();
});

describe('calls QUnit lifecycle methods', function() {
var spy;
beforeEach(function() {
Expand Down

0 comments on commit 837100e

Please sign in to comment.