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 507914c commit 12aaa9b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions node-test/main.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,14 @@ describe("@esm-bundle/styled-components", () => {
expect(keyframes).not.to.equal(undefined);
expect(styled.keyframes).to.equal(undefined);
});

it("has API exports defined", async () => {
const { default: styled, keyframes } = await import(
"../esm/styled-components.min.js"
);

expect(styled.div).not.to.equal(undefined);
expect(keyframes).not.to.equal(undefined);
expect(styled.keyframes).to.equal(undefined);
});
});

0 comments on commit 12aaa9b

Please sign in to comment.