Skip to content

Commit

Permalink
test(addons/InfoBox): add export spec
Browse files Browse the repository at this point in the history
* Ref #610
  • Loading branch information
tomchentw committed Sep 15, 2017
1 parent 87bc259 commit 730b00f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/components/addons/__tests__/InfoBox.spec.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
describe("addons/InfoBox module", () => {
const {
__esModule,
default: DefaultExport,
InfoBox: NamedExport,
} = require("../InfoBox")

it("should be an ES module", () => {
expect(__esModule).toBe(true)
})

it("should be default exported", () => {
expect(DefaultExport).toBeDefined()
})

it("should be named exported", () => {
expect(NamedExport).toBeDefined()
})
})

0 comments on commit 730b00f

Please sign in to comment.