-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move shared test cases into lib folder
Since new versions of npm respect the .npmignore even when it comes from git urls, we need to move the shared test cases into the lib folder in order to provide these cases to other modules which port rewire's functionality to other environments. As discussed at jhnns/rewire-webpack#18
- Loading branch information
Showing
12 changed files
with
19 additions
and
19 deletions.
There are no files selected for viewing
12 changes: 6 additions & 6 deletions
12
test/testModules/debuggerModule.js → lib/testModules/debuggerModule.js
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
"use strict"; // run code in ES5 strict mode | ||
|
||
var myNumber = 0; | ||
|
||
module.exports = function () { | ||
myNumber = 1; | ||
"use strict"; // run code in ES5 strict mode | ||
|
||
var myNumber = 0; | ||
|
||
module.exports = function () { | ||
myNumber = 1; | ||
}; |
8 changes: 4 additions & 4 deletions
8
test/testModules/emptyModule.js → lib/testModules/emptyModule.js
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
"use strict"; // run code in ES5 strict mode | ||
|
||
var someVar; | ||
|
||
"use strict"; // run code in ES5 strict mode | ||
|
||
var someVar; | ||
|
||
// Comment on file end. Hope this won't break anything |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions
12
test/testModules/strictModule.js → lib/testModules/strictModule.js
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
"use strict"; // run code in ES5 strict mode | ||
|
||
function doSomethingUnstrict() { | ||
var caller = arguments.callee.caller; // this should throw an error as a proof that strict mode is on | ||
} | ||
|
||
"use strict"; // run code in ES5 strict mode | ||
|
||
function doSomethingUnstrict() { | ||
var caller = arguments.callee.caller; // this should throw an error as a proof that strict mode is on | ||
} | ||
|
||
exports.doSomethingUnstrict = doSomethingUnstrict; |
File renamed without changes.
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