mirror of
https://github.com/status-im/react-native-mapbox-gl.git
synced 2026-08-31 04:51:15 +00:00
63 lines
1.3 KiB
JavaScript
63 lines
1.3 KiB
JavaScript
import MapboxGL from '../javascript';
|
|
|
|
describe('Public Interface', () => {
|
|
it('should contain all expected components and utils', () => {
|
|
const actualKeys = Object.keys(MapboxGL);
|
|
const expectedKeys = [
|
|
// components
|
|
'MapView',
|
|
'StyleSheet',
|
|
'Light',
|
|
|
|
// layers
|
|
'FillLayer',
|
|
'FillExtrusionLayer',
|
|
'CircleLayer',
|
|
'LineLayer',
|
|
'SymbolLayer',
|
|
'BackgroundLayer',
|
|
'RasterLayer',
|
|
|
|
// sources
|
|
'VectorSource',
|
|
'ShapeSource',
|
|
'RasterSource',
|
|
|
|
// constants
|
|
'UserTrackingModes',
|
|
'StyleURL',
|
|
'EventTypes',
|
|
'CameraModes',
|
|
'StyleSource',
|
|
'InterpolationMode',
|
|
'LineJoin',
|
|
'LineCap',
|
|
'LineTranslateAnchor',
|
|
'CirclePitchScale',
|
|
'CircleTranslateAnchor',
|
|
'FillExtrusionTranslateAnchor',
|
|
'FillTranslateAnchor',
|
|
'IconRotationAlignment',
|
|
'IconTextFit',
|
|
'IconTranslateAnchor',
|
|
'SymbolPlacement',
|
|
'TextAnchor',
|
|
'TextJustify',
|
|
'TextPitchAlignment',
|
|
'TextRotationAlignment',
|
|
'TextTransform',
|
|
'TextTranslateAnchor',
|
|
'LightAnchor',
|
|
|
|
// methods
|
|
'setAccessToken',
|
|
'getAccessToken',
|
|
'requestPermissions',
|
|
|
|
// utils
|
|
'geoUtils',
|
|
];
|
|
actualKeys.forEach((key) => expect(expectedKeys).toContain(key));
|
|
});
|
|
});
|