Skip to content
Browse files

Exposes the API explicitly in server-side tests

  • Loading branch information...
1 parent bab5877 commit 6fac52cb66c09ebe354587737b7be59a441417ca @xcambar committed Apr 22, 2012
Showing with 5 additions and 3 deletions.
  1. +2 −2 test/spec/nodeJSSpec.js
  2. +1 −0 test/spec/shepherdSpec.js
  3. +2 −1 test/spec/specHelper.js
View
4 test/spec/nodeJSSpec.js
@@ -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 () {
@@ -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']);
View
1 test/spec/shepherdSpec.js
@@ -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 () {
View
3 test/spec/specHelper.js
@@ -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 () {

0 comments on commit 6fac52c

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