Skip to content

Commit

Permalink
Exposes the API explicitly in server-side tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xcambar committed Apr 22, 2012
1 parent bab5877 commit 6fac52c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/spec/nodeJSSpec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var s6d = require('../../build/shepherd.dev.js');
var s6d = require('../../build/shepherd.server.js');
s6d({exposeAPI: true});

describe('global.require function', function () {
it ('has been replaced by a custom function', function () {
Expand Down Expand Up @@ -58,7 +59,6 @@ describe('Importing module declared by a canonical URL', function () {
it ('should be able to import modules from a canonical URL', function () {
var spy = this.loadModule('fixtures/importFromCanonicalURL.js', 2000);
runs(function () {
console.log(s6d.get('fixtures/importFromCanonicalURL.js'));
expect(s6d.get('fixtures/importFromCanonicalURL.js').export1).toBeTruthy();
expect(s6d.get('fixtures/importFromCanonicalURL.js').export1.var1).toBe('EXPORTED NAMED MODULE!!');
expect(s6d.get('fixtures/importFromCanonicalURL.js').export1).toHaveMembers(['var1', 'fn1']);
Expand Down
1 change: 1 addition & 0 deletions test/spec/shepherdSpec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
if (typeof window == 'undefined') {
var s6d = require('../../build/shepherd.server.js');
s6d({exposeAPI: true});
}

describe('Generic features of the Loader', function () {
Expand Down
3 changes: 2 additions & 1 deletion test/spec/specHelper.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
if (typeof window == 'undefined') {
var s6d = require('../../build/shepherd.dev.js');
var s6d = require('../../build/shepherd.server.js');
s6d({exposeAPI: true});
}

beforeEach(function () {
Expand Down

0 comments on commit 6fac52c

Please sign in to comment.