@@ -6,27 +6,6 @@ import { ArrayStatistic } from '@supermapgis/iclient-common/util/ArrayStatistic'
6
6
import { FetchRequest } from '@supermapgis/iclient-common/util/FetchRequest' ;
7
7
import '../../resources/WebMapV5.js' ;
8
8
9
- window . jsonsql = { query : ( ) => [ { } ] } ;
10
-
11
- window . canvg = {
12
- default : {
13
- from : ( ctx , url , callback ) =>
14
- Promise . resolve ( { stop : jasmine . createSpy ( 'stop' ) , start : jasmine . createSpy ( 'start' ) } )
15
- }
16
- } ;
17
-
18
- window . geostats = class {
19
- setSerie ( ) { }
20
- } ;
21
-
22
- window . EchartsLayer = class {
23
- constructor ( ) {
24
- this . chart = {
25
- setOption ( ) { }
26
- } ;
27
- }
28
- } ;
29
-
30
9
function DataFlowService ( serviceUrl ) {
31
10
const dataflowFeature = {
32
11
geometry : {
@@ -327,6 +306,23 @@ describe('mapboxgl_WebMapV2', () => {
327
306
window . document . body . appendChild ( testDiv ) ;
328
307
originalTimeout = jasmine . DEFAULT_TIMEOUT_INTERVAL ;
329
308
jasmine . DEFAULT_TIMEOUT_INTERVAL = 50000 ;
309
+ window . jsonsql = { query : ( ) => [ { } ] } ;
310
+ window . canvg = {
311
+ default : {
312
+ from : ( ctx , url , callback ) =>
313
+ Promise . resolve ( { stop : jasmine . createSpy ( 'stop' ) , start : jasmine . createSpy ( 'start' ) } )
314
+ }
315
+ } ;
316
+ window . geostats = class {
317
+ setSerie ( ) { }
318
+ } ;
319
+ window . EchartsLayer = class {
320
+ constructor ( ) {
321
+ this . chart = {
322
+ setOption ( ) { }
323
+ } ;
324
+ }
325
+ } ;
330
326
} ) ;
331
327
afterEach ( ( ) => {
332
328
if ( datavizWebmap ) {
@@ -340,6 +336,10 @@ describe('mapboxgl_WebMapV2', () => {
340
336
window . document . body . removeChild ( testDiv ) ;
341
337
jasmine . DEFAULT_TIMEOUT_INTERVAL = originalTimeout ;
342
338
mapboxgl . CRS = undefined ;
339
+ window . jsonsql = undefined ;
340
+ window . canvg = undefined ;
341
+ window . geostats = undefined ;
342
+ window . EchartsLayer = undefined ;
343
343
} ) ;
344
344
345
345
it ( 'test baseLayer layers count maploaded' , ( done ) => {
0 commit comments