Skip to content
Permalink
Browse files
CB-13232: added test for cordova's unique local style require
 This closes #148
  • Loading branch information
stevengill committed Aug 31, 2017
1 parent f623343 commit 74a4adc2d0fddb1e0cfb9be1961494ef0afc9893
Showing 1 changed file with 10 additions and 0 deletions.
@@ -145,5 +145,15 @@ describe("require + define", function () {
define("a", factory);
require("a");
});

it("can handle multiple defined modules that use cordova's unique handling of relative require paths", function () {
define("plugin.ios.foo", function (require, exports, module) {
module.exports = require("./bar") * 2;
});
define("plugin.ios.bar", function (require, exports, module) {
module.exports = 2;
});
expect(require("plugin.ios.foo")).toEqual(4);
});
});
});

0 comments on commit 74a4adc

Please sign in to comment.