File tree 1 file changed +2
-3
lines changed
libs/dfx-bootstrap-icons/src/lib
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ import { IconFeatures } from './icons.feature';
19
19
import { DEFAULT_ICON_SIZE } from './icons.config' ;
20
20
import { toEscapedName } from './internal/toEscapedName' ;
21
21
import { provideHttpClient } from '@angular/common/http' ;
22
- import { thr_sleep } from 'dfts-helper' ;
23
22
import { isPlatformBrowser } from '@angular/common' ;
24
23
import { inject , PLATFORM_ID } from '@angular/core' ;
25
24
@@ -68,7 +67,7 @@ describe('IconFeatures ', () => {
68
67
69
68
fixture . detectChanges ( ) ;
70
69
71
- await thr_sleep ( 1000 ) ;
70
+ await new Promise ( ( resolve ) => setTimeout ( resolve , 1000 ) ) ;
72
71
73
72
// @ts -ignore
74
73
expect ( nativeElement . querySelector ( 'svg' ) ?. outerHTML ) . toBe ( allIcons [ toEscapedName ( 'x-circle-fill' ) ] ) ;
@@ -96,7 +95,7 @@ describe('IconFeatures ', () => {
96
95
97
96
fixture . detectChanges ( ) ;
98
97
99
- await thr_sleep ( 1000 ) ;
98
+ await new Promise ( ( resolve ) => setTimeout ( resolve , 1000 ) ) ;
100
99
101
100
// @ts -ignore
102
101
expect ( nativeElement . querySelector ( 'svg' ) ?. outerHTML ) . toBe ( allIcons [ toEscapedName ( 'x-circle-fill' ) ] ) ;
You can’t perform that action at this time.
0 commit comments