Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/rewire.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes <johannes.ewald@roomieplanet.de>2012-08-20 04:36:35 +0400
committerJohannes <johannes.ewald@roomieplanet.de>2012-08-20 04:36:35 +0400
commit3cc25aec3698c7becd463bd75524a3b2a319ecab (patch)
treecff8c03016f05a7646ed864ca7238e5f9f09b7ce /test/bundlers.browserify.test.js
parentc5d8fab07f0edc568e45e0747f863afd5876abc2 (diff)
- All tests running
- Added changelog
Diffstat (limited to 'test/bundlers.browserify.test.js')
-rw-r--r--test/bundlers.browserify.test.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/bundlers.browserify.test.js b/test/bundlers.browserify.test.js
index 43b6bb7..c454ba9 100644
--- a/test/bundlers.browserify.test.js
+++ b/test/bundlers.browserify.test.js
@@ -24,7 +24,8 @@ function runInFakeBrowserContext(src, filename) {
encodeURIComponent: function () {},
decodeURIComponent: function () {},
document: {},
- console: console
+ console: console,
+ testEnv: "browserify"
};
context.window = context;
vm.runInNewContext(src, context, filename);
@@ -34,7 +35,6 @@ describe("rewire bundled with browserify", function () {
before(require("./testHelpers/createFakePackageJSON.js"));
after(require("./testHelpers/removeFakePackageJSON.js"));
it("should run all sharedTestCases without exception", function () {
- return;
var b = browserify({
debug: true
}),
@@ -49,7 +49,7 @@ describe("rewire bundled with browserify", function () {
browserBundle = vmBundle;
// Setup for mocha
- browserBundle = "function enableTests() {" + browserBundle + "}";
+ browserBundle = "function enableTests() { " + browserBundle + " }";
// Output for browser-testing
fs.writeFileSync(browserOutput, browserBundle, "utf8");