Skip to content

Commit 1c02221

Browse files
committed
fix(test): Confusing test cases
1 parent 8bc78d6 commit 1c02221

File tree

2 files changed

+19
-31
lines changed

2 files changed

+19
-31
lines changed

package-lock.json

+19-23
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

projects/ngx-ui-loader/src/lib/core/ngx-ui-loader.service.spec.ts

-8
Original file line numberDiff line numberDiff line change
@@ -371,10 +371,6 @@ describe(`NgxUiLoaderService (loaderId == ${DEFAULT_MASTER_LOADER_ID})`, () => {
371371
expect(data).toEqual({ loaderId: DEFAULT_MASTER_LOADER_ID, isShow: false });
372372
});
373373

374-
loaderService.backgroundClosing$.subscribe((data) => {
375-
expect(data).toEqual({ loaderId: DEFAULT_MASTER_LOADER_ID, isShow: true });
376-
});
377-
378374
loaderService.showForeground$.subscribe((data) => {
379375
expect(data).toEqual({ loaderId: DEFAULT_MASTER_LOADER_ID, isShow: true });
380376
});
@@ -452,10 +448,6 @@ describe(`NgxUiLoaderService (loaderId == ${DEFAULT_MASTER_LOADER_ID})`, () => {
452448
expect(data).toEqual({ loaderId: DEFAULT_MASTER_LOADER_ID, isShow: false });
453449
});
454450

455-
loaderService.backgroundClosing$.subscribe((data) => {
456-
expect(data).toEqual({ loaderId: DEFAULT_MASTER_LOADER_ID, isShow: true });
457-
});
458-
459451
loaderService.showForeground$.subscribe((data) => {
460452
expect(data).toEqual({ loaderId: DEFAULT_MASTER_LOADER_ID, isShow: true });
461453
});

0 commit comments

Comments
 (0)