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

rewire.test.js « test - github.com/twbs/rewire.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1783ad528b0c3362c07de3b62510bd93e1e866c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Don't run code in ES5 strict mode.
// In case this module was in strict mode, all other modules called by this would also be strict.
// But when testing if the strict mode is preserved, we must ensure that this module is NOT strict.

describe("rewire", function () {
    before(require("./testHelpers/createFakePackageJSON.js"));
    after(require("./testHelpers/removeFakePackageJSON.js"));
    it("should pass all shared test cases", function () {
        require("./testModules/sharedTestCases.js");
    });
});