@@ -31,14 +31,14 @@ describe('Map', () => {
3131 } ) ;
3232
3333 it ( 'Should render the map correctly' , ( ) => {
34- const MapboxMap = ReactMapboxGl ( { accessToken : '' , injectCSS : false } ) ;
34+ const MapboxMap = ReactMapboxGl ( { accessToken : '' } ) ;
3535 mount ( < MapboxMap style = "" /> ) ;
3636 } ) ;
3737
3838 it ( 'Should call fitBounds with the right parameters' , ( ) => {
3939 const fitBoundsValues : FitBounds = [ [ 0 , 1 ] , [ 2 , 3 ] ] ;
4040 const fitBoundsOptions = { linear : true } ;
41- const MapboxMap = ReactMapboxGl ( { accessToken : '' , injectCSS : false } ) ;
41+ const MapboxMap = ReactMapboxGl ( { accessToken : '' } ) ;
4242
4343 mount (
4444 < MapboxMap
@@ -58,7 +58,7 @@ describe('Map', () => {
5858 const fitBoundsValues : FitBounds = [ [ 0 , 1 ] , [ 2 , 3 ] ] ;
5959 const fitBoundsOptions = { offset : [ 150 , 0 ] as [ number , number ] } ;
6060 const newFitBoundsOptions = { offset : [ 0 , 0 ] } ;
61- const MapboxMap = ReactMapboxGl ( { accessToken : '' , injectCSS : false } ) ;
61+ const MapboxMap = ReactMapboxGl ( { accessToken : '' } ) ;
6262
6363 const wrapper = mount (
6464 < MapboxMap
@@ -82,7 +82,7 @@ describe('Map', () => {
8282
8383 it ( 'Should calc the center from fitbounds if center is not given' , ( ) => {
8484 const fitBoundsValues : FitBounds = [ [ 0 , 3 ] , [ 2 , 9 ] ] ;
85- const MapboxMap = ReactMapboxGl ( { accessToken : '' , injectCSS : false } ) ;
85+ const MapboxMap = ReactMapboxGl ( { accessToken : '' } ) ;
8686
8787 mount ( < MapboxMap style = "" fitBounds = { fitBoundsValues } /> ) ;
8888
@@ -92,7 +92,7 @@ describe('Map', () => {
9292 } ) ;
9393
9494 it ( 'Should listen onStyleLoad event' , ( ) => {
95- const MapboxMap = ReactMapboxGl ( { accessToken : '' , injectCSS : false } ) ;
95+ const MapboxMap = ReactMapboxGl ( { accessToken : '' } ) ;
9696
9797 mount ( < MapboxMap style = "" onStyleLoad = { jest . fn ( ) } /> ) ;
9898
@@ -102,7 +102,7 @@ describe('Map', () => {
102102 it ( 'Should update the map center position' , ( ) => {
103103 const flyTo = jest . fn ( ) ;
104104 const center = [ 3 , 4 ] ;
105- const MapboxMap = ReactMapboxGl ( { accessToken : '' , injectCSS : false } ) ;
105+ const MapboxMap = ReactMapboxGl ( { accessToken : '' } ) ;
106106
107107 const wrapper = mount ( < MapboxMap style = "" center = { [ 1 , 2 ] } /> ) ;
108108
@@ -123,7 +123,7 @@ describe('Map', () => {
123123 const maxBoundsProps = [ [ 1 , 0 ] , [ 0 , 1 ] ] ;
124124 const mockMaxBounds = jest . fn ( ) ;
125125
126- const MapboxMap = ReactMapboxGl ( { accessToken : '' , injectCSS : false } ) ;
126+ const MapboxMap = ReactMapboxGl ( { accessToken : '' } ) ;
127127 const wrapper = mount ( < MapboxMap style = "" /> ) ;
128128 wrapper . setState ( {
129129 map : {
@@ -139,7 +139,7 @@ describe('Map', () => {
139139
140140 // Handling zoom prop
141141 it ( 'Should not update zoom when using same reference equality' , ( ) => {
142- const MapboxMap = ReactMapboxGl ( { accessToken : '' , injectCSS : false } ) ;
142+ const MapboxMap = ReactMapboxGl ( { accessToken : '' } ) ;
143143 const flyTo = jest . fn ( ) ;
144144 const zoom : [ number ] = [ 3 ] ;
145145
@@ -158,7 +158,7 @@ describe('Map', () => {
158158
159159 it ( 'Should update the zoom on broken reference equality' , ( ) => {
160160 const flyTo = jest . fn ( ) ;
161- const MapboxMap = ReactMapboxGl ( { accessToken : '' , injectCSS : false } ) ;
161+ const MapboxMap = ReactMapboxGl ( { accessToken : '' } ) ;
162162
163163 const wrapper = mount ( < MapboxMap style = "" zoom = { [ 1 ] } /> ) ;
164164
@@ -175,7 +175,7 @@ describe('Map', () => {
175175
176176 // Handling bearing prop
177177 it ( 'Should not update bearing when using same reference equality' , ( ) => {
178- const MapboxMap = ReactMapboxGl ( { accessToken : '' , injectCSS : false } ) ;
178+ const MapboxMap = ReactMapboxGl ( { accessToken : '' } ) ;
179179 const flyTo = jest . fn ( ) ;
180180 const bearing : [ number ] = [ 3 ] ;
181181
@@ -194,7 +194,7 @@ describe('Map', () => {
194194
195195 it ( 'Should update the bearing on broken reference equality' , ( ) => {
196196 const flyTo = jest . fn ( ) ;
197- const MapboxMap = ReactMapboxGl ( { accessToken : '' , injectCSS : false } ) ;
197+ const MapboxMap = ReactMapboxGl ( { accessToken : '' } ) ;
198198
199199 const wrapper = mount ( < MapboxMap style = "" bearing = { [ 1 ] } /> ) ;
200200
@@ -211,7 +211,7 @@ describe('Map', () => {
211211
212212 // Handling pitch prop
213213 it ( 'Should not update pitch when using same reference equality' , ( ) => {
214- const MapboxMap = ReactMapboxGl ( { accessToken : '' , injectCSS : false } ) ;
214+ const MapboxMap = ReactMapboxGl ( { accessToken : '' } ) ;
215215 const flyTo = jest . fn ( ) ;
216216 const pitch : [ number ] = [ 3 ] ;
217217
@@ -230,7 +230,7 @@ describe('Map', () => {
230230
231231 it ( 'Should update the pitch on broken reference equality' , ( ) => {
232232 const flyTo = jest . fn ( ) ;
233- const MapboxMap = ReactMapboxGl ( { accessToken : '' , injectCSS : false } ) ;
233+ const MapboxMap = ReactMapboxGl ( { accessToken : '' } ) ;
234234
235235 const wrapper = mount ( < MapboxMap style = "" pitch = { [ 1 ] } /> ) ;
236236
@@ -246,7 +246,7 @@ describe('Map', () => {
246246 } ) ;
247247
248248 it ( 'Should pass animation options and flyTo options' , ( ) => {
249- const MapboxMap = ReactMapboxGl ( { accessToken : '' , injectCSS : false } ) ;
249+ const MapboxMap = ReactMapboxGl ( { accessToken : '' } ) ;
250250 const flyTo = jest . fn ( ) ;
251251 const zoom : [ number ] = [ 3 ] ;
252252 const flyToOptions = {
0 commit comments