Skip to content

Commit 58e1461

Browse files
committed
test: icons provider not dependent on dfts-helper
1 parent 440b546 commit 58e1461

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

libs/dfx-bootstrap-icons/src/lib/icons.provider.spec.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import { IconFeatures } from './icons.feature';
1919
import { DEFAULT_ICON_SIZE } from './icons.config';
2020
import { toEscapedName } from './internal/toEscapedName';
2121
import { provideHttpClient } from '@angular/common/http';
22-
import { thr_sleep } from 'dfts-helper';
2322
import { isPlatformBrowser } from '@angular/common';
2423
import { inject, PLATFORM_ID } from '@angular/core';
2524

@@ -68,7 +67,7 @@ describe('IconFeatures ', () => {
6867

6968
fixture.detectChanges();
7069

71-
await thr_sleep(1000);
70+
await new Promise((resolve) => setTimeout(resolve, 1000));
7271

7372
// @ts-ignore
7473
expect(nativeElement.querySelector('svg')?.outerHTML).toBe(allIcons[toEscapedName('x-circle-fill')]);
@@ -96,7 +95,7 @@ describe('IconFeatures ', () => {
9695

9796
fixture.detectChanges();
9897

99-
await thr_sleep(1000);
98+
await new Promise((resolve) => setTimeout(resolve, 1000));
10099

101100
// @ts-ignore
102101
expect(nativeElement.querySelector('svg')?.outerHTML).toBe(allIcons[toEscapedName('x-circle-fill')]);

0 commit comments

Comments
 (0)