|
1 | 1 | import MapLibreGL from "../src";
|
2 | 2 |
|
3 |
| -// Assert that all required MapLibre modules are accessible and exported |
4 |
| -describe("Public Interface", () => { |
| 3 | +describe("Package Exports", () => { |
5 | 4 | it("should contain all expected components and utils", () => {
|
6 | 5 | const actualKeys = Object.keys(MapLibreGL);
|
| 6 | + |
7 | 7 | const expectedKeys = [
|
8 |
| - // components |
| 8 | + // Components |
9 | 9 | "MapView",
|
10 |
| - // 'StyleSheet', |
11 | 10 | "Light",
|
12 | 11 | "PointAnnotation",
|
13 | 12 | "MarkerView",
|
@@ -44,52 +43,58 @@ describe("Public Interface", () => {
|
44 | 43 | "UserTrackingMode",
|
45 | 44 | "UserLocationRenderMode",
|
46 | 45 | "StyleURL",
|
47 |
| - "EventTypes", |
| 46 | + // "EventTypes", |
48 | 47 | "CameraModes",
|
49 | 48 | "StyleSource",
|
50 |
| - "InterpolationMode", |
| 49 | + // "InterpolationMode", |
51 | 50 | "LineJoin",
|
52 |
| - "LineCap", |
53 |
| - "LineTranslateAnchor", |
54 |
| - "CirclePitchScale", |
55 |
| - "CircleTranslateAnchor", |
| 51 | + // "LineCap", |
| 52 | + // "LineTranslateAnchor", |
| 53 | + // "CirclePitchScale", |
| 54 | + // "CircleTranslateAnchor", |
56 | 55 | // 'CirclePitchAlignment',
|
57 |
| - "FillExtrusionTranslateAnchor", |
58 |
| - "FillTranslateAnchor", |
59 |
| - "IconRotationAlignment", |
60 |
| - "IconTextFit", |
| 56 | + // "FillExtrusionTranslateAnchor", |
| 57 | + // "FillTranslateAnchor", |
| 58 | + // "IconRotationAlignment", |
| 59 | + // "IconTextFit", |
61 | 60 | // 'IconAnchor',
|
62 |
| - "IconTranslateAnchor", |
| 61 | + // "IconTranslateAnchor", |
63 | 62 | // 'IconPitchAlignment',
|
64 |
| - "SymbolPlacement", |
65 |
| - "TextAnchor", |
66 |
| - "TextJustify", |
67 |
| - "TextPitchAlignment", |
68 |
| - "TextRotationAlignment", |
69 |
| - "TextTransform", |
70 |
| - "TextTranslateAnchor", |
71 |
| - "LightAnchor", |
| 63 | + // "SymbolPlacement", |
| 64 | + // "TextAnchor", |
| 65 | + // "TextJustify", |
| 66 | + // "TextPitchAlignment", |
| 67 | + // "TextRotationAlignment", |
| 68 | + // "TextTransform", |
| 69 | + // "TextTranslateAnchor", |
| 70 | + // "LightAnchor", |
| 71 | + |
72 | 72 | "OfflinePackDownloadState",
|
73 |
| - "OfflineCallbackName", |
| 73 | + // "OfflineCallbackName", |
| 74 | + |
| 75 | + // Methods |
74 | 76 |
|
75 |
| - // methods |
76 | 77 | "setAccessToken",
|
77 | 78 | "getAccessToken",
|
| 79 | + |
| 80 | + "addCustomHeader", |
| 81 | + "removeCustomHeader", |
| 82 | + |
78 | 83 | "setConnected",
|
79 | 84 | "requestAndroidLocationPermissions",
|
80 | 85 |
|
81 | 86 | // animated
|
82 | 87 | "Animated",
|
83 | 88 |
|
84 | 89 | // helpers
|
85 |
| - "AnimatedPoint", |
86 |
| - "AnimatedCoordinatesArray", |
87 |
| - "AnimatedShape", |
88 |
| - "AnimatedExtractCoordinateFromArray", |
89 |
| - "AnimatedRouteCoordinatesArray", |
| 90 | + // "AnimatedPoint", |
| 91 | + // "AnimatedCoordinatesArray", |
| 92 | + // "AnimatedShape", |
| 93 | + // "AnimatedExtractCoordinateFromArray", |
| 94 | + // "AnimatedRouteCoordinatesArray", |
90 | 95 | "Logger",
|
91 |
| - "Style", |
92 | 96 | ];
|
93 |
| - actualKeys.forEach((key) => expect(expectedKeys).toContain(key)); |
| 97 | + |
| 98 | + expect(actualKeys.sort()).toEqual(expectedKeys.sort()); |
94 | 99 | });
|
95 | 100 | });
|
0 commit comments