Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Named-exports extras - Default export function with named exports #2186

Merged
merged 9 commits into from
May 9, 2020
Prev Previous commit
Next Next commit
Add tests for default export w Obj.create(null)
  • Loading branch information
Sauloxd committed May 9, 2020
commit 932f41722a7f5317814411f85662a2b20ab065fc
10 changes: 10 additions & 0 deletions test/browser/named-exports.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ suite('Named exports', function () {
assert.ok(m.default);
assert.equal(m.dep, m.default.dep);
assert.equal(m.umd, true);
assert.equal(m.default.hasOwnProperty, Object.prototype.hasOwnProperty)
});
});

test('Loading an UMD module with default with object null prototype', function () {
return System.import('fixtures/umd-default-object-with-null-prototype-module.js').then(function (m) {
assert.ok(m.default);
assert.equal(m.dep, m.default.dep);
assert.equal(m.umd, true);
assert.equal(m.default.hasOwnProperty, undefined)
});
});

Expand Down