Skip to content

Commit

Permalink
Test .min file
Browse files Browse the repository at this point in the history
  • Loading branch information
filoxo committed Jul 17, 2020
1 parent a0f21bb commit 9e88189
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions browser-test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,17 @@ describe("@esm-bundle/styled-components System.register import", () => {
expect(typeof module.keyframes).toBe("function");
});
});

it("can load", () => {
return System.import("/base/system/styled-components.min.js").then(
(module) => {
expect(module.default).toBeDefined();
expect(module.__esModule).toEqual(true);
// Default export
expect(typeof module.default.div).toBe("function");
// Named export
expect(typeof module.keyframes).toBe("function");
}
);
});
});

0 comments on commit 9e88189

Please sign in to comment.