From 54454110d3ab8fff77ba38f6b511a89159b1c263 Mon Sep 17 00:00:00 2001 From: Tom Chen Date: Wed, 13 Sep 2017 22:21:40 +0800 Subject: [PATCH] test(addons/MarkerClusterer): add export spec * Ref #610 --- .../addons/__tests__/MarkerClusterer.spec.jsx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/components/addons/__tests__/MarkerClusterer.spec.jsx diff --git a/src/components/addons/__tests__/MarkerClusterer.spec.jsx b/src/components/addons/__tests__/MarkerClusterer.spec.jsx new file mode 100644 index 00000000..ca7993b2 --- /dev/null +++ b/src/components/addons/__tests__/MarkerClusterer.spec.jsx @@ -0,0 +1,19 @@ +describe("addons/MarkerClusterer module", () => { + const { + __esModule, + default: DefaultExport, + MarkerClusterer: NamedExport, + } = require("../MarkerClusterer") + + 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() + }) +})