@@ -38,7 +38,7 @@ describe('LyraGrid.vue', () => {
3838 } ,
3939 } ) ;
4040
41- setImmediate ( ( ) => {
41+ setTimeout ( ( ) => {
4242 wrapper . vm . grid . startup ( ) ;
4343 req . respond ( 200 ,
4444 {
@@ -47,7 +47,7 @@ describe('LyraGrid.vue', () => {
4747 } ,
4848 JSON . stringify ( mockData ) ) ;
4949 done ( ) ;
50- } ) ;
50+ } , 0 ) ;
5151 } ) ;
5252 after ( ( ) => {
5353 sinon . useFakeXMLHttpRequest ( )
@@ -224,7 +224,7 @@ describe('LyraGrid.vue', () => {
224224 } ,
225225 } ) ;
226226
227- setImmediate ( ( ) => {
227+ setTimeout ( ( ) => {
228228 wrapper . vm . grid . startup ( ) ;
229229 req . respond ( 200 ,
230230 {
@@ -233,7 +233,7 @@ describe('LyraGrid.vue', () => {
233233 } ,
234234 JSON . stringify ( mockData ) ) ;
235235 done ( ) ;
236- } ) ;
236+ } , 0 ) ;
237237 } ) ;
238238 after ( ( ) => {
239239 sinon . useFakeXMLHttpRequest ( )
@@ -318,7 +318,7 @@ describe('LyraGrid.vue', () => {
318318 } ,
319319 } ) ;
320320
321- setImmediate ( ( ) => {
321+ setTimeout ( ( ) => {
322322 wrapper . vm . grid . startup ( ) ;
323323 req . respond ( 200 ,
324324 {
@@ -327,7 +327,7 @@ describe('LyraGrid.vue', () => {
327327 } ,
328328 JSON . stringify ( mockData ) ) ;
329329 done ( ) ;
330- } ) ;
330+ } , 0 ) ;
331331 } ) ;
332332 afterEach ( ( ) => {
333333 sinon . useFakeXMLHttpRequest ( )
@@ -568,10 +568,10 @@ describe('LyraGrid.vue', () => {
568568 } ) ;
569569
570570 it ( 'lyra grid div not found' , ( done ) => {
571- setImmediate ( ( ) => {
571+ setTimeout ( ( ) => {
572572 expect ( wrapper . vm . grid ) . to . be . undefined ;
573573 done ( ) ;
574- } ) ;
574+ } , 0 ) ;
575575 } ) ;
576576 } ) ;
577577
@@ -614,7 +614,7 @@ describe('LyraGrid.vue', () => {
614614 } ,
615615 } ) ;
616616
617- setImmediate ( ( ) => {
617+ setTimeout ( ( ) => {
618618 wrapper . vm . grid . startup ( ) ;
619619 req . respond ( 200 ,
620620 {
@@ -623,7 +623,7 @@ describe('LyraGrid.vue', () => {
623623 } ,
624624 JSON . stringify ( mockData ) ) ;
625625 done ( ) ;
626- } ) ;
626+ } , 0 ) ;
627627 } ) ;
628628 after ( ( ) => {
629629 sinon . useFakeXMLHttpRequest ( )
@@ -740,10 +740,10 @@ describe('LyraGrid.vue', () => {
740740 } ,
741741 } ) ;
742742
743- setImmediate ( ( ) => {
743+ setTimeout ( ( ) => {
744744 showMessage . should . have . been . calledOnceWith ( requestError ) ;
745745 done ( ) ;
746- } ) ;
746+ } , 0 ) ;
747747 } ) ;
748748 } ) ;
749749
@@ -783,7 +783,7 @@ describe('LyraGrid.vue', () => {
783783 } ,
784784 } ) ;
785785
786- setImmediate ( ( ) => {
786+ setTimeout ( ( ) => {
787787 wrapper . vm . grid . startup ( ) ;
788788 req . respond ( 200 ,
789789 {
@@ -792,7 +792,7 @@ describe('LyraGrid.vue', () => {
792792 } ,
793793 JSON . stringify ( mockData ) ) ;
794794 done ( ) ;
795- } ) ;
795+ } , 0 ) ;
796796 } ) ;
797797 afterEach ( ( ) => {
798798 sinon . useFakeXMLHttpRequest ( )
0 commit comments