mirror of
https://github.com/status-im/react-native-mapbox-gl.git
synced 2026-08-31 04:51:15 +00:00
41 lines
826 B
JavaScript
41 lines
826 B
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',
|
|
|
|
// layers
|
|
'FillLayer',
|
|
'FillExtrusionLayer',
|
|
'CircleLayer',
|
|
'LineLayer',
|
|
'SymbolLayer',
|
|
|
|
// sources
|
|
'VectorSource',
|
|
'ShapeSource',
|
|
|
|
// constants
|
|
'UserTrackingModes',
|
|
'StyleURL',
|
|
'EventTypes',
|
|
'CameraModes',
|
|
'StyleSource',
|
|
'InterpolationMode',
|
|
|
|
// methods
|
|
'setAccessToken',
|
|
'getAccessToken',
|
|
'requestPermissions',
|
|
|
|
// utils
|
|
'geoUtils',
|
|
];
|
|
actualKeys.forEach((key) => expect(expectedKeys).toContain(key));
|
|
});
|
|
});
|