-
Notifications
You must be signed in to change notification settings - Fork 925
Expand file tree
/
Copy pathindex.spec.js
More file actions
51 lines (48 loc) · 1.29 KB
/
index.spec.js
File metadata and controls
51 lines (48 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
describe("react-google-maps module (index.js)", () => {
const {
__esModule,
default: DefaultExport,
withScriptjs,
withGoogleMap,
GoogleMap,
Circle,
Marker,
Polyline,
Polygon,
Rectangle,
InfoWindow,
OverlayView,
DirectionsRenderer,
FusionTablesLayer,
KmlLayer,
TrafficLayer,
TransitLayer,
BicyclingLayer,
StreetViewPanorama,
} = require("../")
it("should be an ES module", () => {
expect(__esModule).toBe(true)
})
it("should have no default exported", () => {
expect(DefaultExport).toBeUndefined()
})
it("should have name exports for basic components", () => {
expect(withScriptjs).toBeDefined()
expect(withGoogleMap).toBeDefined()
expect(GoogleMap).toBeDefined()
expect(Circle).toBeDefined()
expect(Marker).toBeDefined()
expect(Polyline).toBeDefined()
expect(Polygon).toBeDefined()
expect(Rectangle).toBeDefined()
expect(InfoWindow).toBeDefined()
expect(OverlayView).toBeDefined()
expect(DirectionsRenderer).toBeDefined()
expect(FusionTablesLayer).toBeDefined()
expect(KmlLayer).toBeDefined()
expect(TrafficLayer).toBeDefined()
expect(TransitLayer).toBeDefined()
expect(BicyclingLayer).toBeDefined()
expect(StreetViewPanorama).toBeDefined()
})
})