diff options
author | Johannes Ewald <johannes.ewald@peerigon.com> | 2017-11-11 04:48:54 +0300 |
---|---|---|
committer | Johannes Ewald <johannes.ewald@peerigon.com> | 2017-11-11 05:04:37 +0300 |
commit | ec2175b17bd1f2ecdb479c66fab8a01666d6da3a (patch) | |
tree | 9b06934df193875f41dfc9400a352acd3183eb2a /testLib | |
parent | b6cc4071f67d47596901c01506eeeff138ab059e (diff) |
Update .travis.yml
Remove unsupported node versions
Diffstat (limited to 'testLib')
-rw-r--r-- | testLib/constModule.js | 6 | ||||
-rw-r--r-- | testLib/sharedTestCases.js | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/testLib/constModule.js b/testLib/constModule.js index 042b797..77396d9 100644 --- a/testLib/constModule.js +++ b/testLib/constModule.js @@ -1,13 +1,13 @@ const someOtherModule = require("./someOtherModule"); const language = "nl"; -module.exports.getLang = () => { +exports.getLang = () => { return language; -} +}; exports.getOtherModuleName = () => { return someOtherModule.name; -} +}; exports.filename = __filename; exports.dirname = __dirname; diff --git a/testLib/sharedTestCases.js b/testLib/sharedTestCases.js index 06dcb11..b6caf6a 100644 --- a/testLib/sharedTestCases.js +++ b/testLib/sharedTestCases.js @@ -17,7 +17,7 @@ function checkForTypeError(err) { expect(err.constructor).to.be(TypeError); } -describe(typeof testEnv === "undefined"? "(node)": "(" + testEnv + ")", function () { +module.exports = function () { it("should work like require()", function () { rewire("./moduleA.js").getFilename(); @@ -390,4 +390,4 @@ describe(typeof testEnv === "undefined"? "(node)": "(" + testEnv + ")", function expect(constModule.dirname).to.equal(require("./constModule").dirname); }); -}); +}; |