Skip to content

Commit 0bd5e36

Browse files
authored
test: remove duplicate test
There were two absolutely identical tests in a row.
1 parent 39ed9e1 commit 0bd5e36

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

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

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -559,25 +559,6 @@ describe(`NgxUiLoaderService (loaderId == ${DEFAULT_MASTER_LOADER_ID})`, () => {
559559
expect(Object.keys(loader.tasks).every(id => loader.tasks[id].isForeground === false)).toEqual(true);
560560
});
561561

562-
it(`#bindLoaderData('${LOADER_ID_01}') - should not throw any error`, () => {
563-
loaderService.startBackgroundLoader(LOADER_ID_01);
564-
expect(() => {
565-
loaderService.bindLoaderData(LOADER_ID_01);
566-
}).not.toThrowError(`[ngx-ui-loader] - loaderId "${LOADER_ID_01}" is duplicated.`);
567-
loaderService.showBackground$.subscribe(data => {
568-
expect(data).toEqual({ loaderId: LOADER_ID_01, isShow: true });
569-
});
570-
const loader = loaderService.getLoaders()[LOADER_ID_01];
571-
expect(loader).toEqual(
572-
jasmine.objectContaining({
573-
loaderId: LOADER_ID_01,
574-
isMaster: !IS_MASTER,
575-
isBound: IS_BOUND
576-
})
577-
);
578-
expect(Object.keys(loader.tasks).every(id => loader.tasks[id].isForeground === false)).toEqual(true);
579-
});
580-
581562
it(`#startBackground() - 0 - should not throw any error`, () => {
582563
loaderService.destroyLoaderData(DEFAULT_MASTER_LOADER_ID);
583564
expect(() => {

0 commit comments

Comments
 (0)