Skip to content

Commit

Permalink
feat(starter): update rxjs
Browse files Browse the repository at this point in the history
  • Loading branch information
mhenkens committed Feb 7, 2024
1 parent 4339893 commit e5d9b74
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable @angular-eslint/no-lifecycle-call */
import {Observable, Observer, of, Subject, Subscriber, TeardownLogic, throwError} from "rxjs";
import { Observable, Observer, of, Subject, Subscriber, TeardownLogic, throwError } from "rxjs";
import { AbstractStarkSearchComponent, StarkGenericSearchService } from "../classes";
import { MockStarkLoggingService } from "@nationalbankbelgium/stark-core/testing";
import { StarkResource } from "@nationalbankbelgium/stark-core";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ describe("ToastNotificationService", () => {

expect((<any>service).currentToastResult$).not.toBeNull();
expect((<any>service).currentToastResult$).toBeDefined();


showObs = service.show(message);

Expand All @@ -132,7 +131,6 @@ describe("ToastNotificationService", () => {

expect((<any>service).currentToastResult$).not.toBeNull();
expect((<any>service).currentToastResult$).toBeDefined();


/** Mimic MatSnackBar's behavior */
observer.next({ dismissedByAction: false });
Expand All @@ -150,16 +148,16 @@ describe("ToastNotificationService", () => {
tick();

spyOn((<any>service).currentToastResult$, "complete");
const privateObserver: Observer<StarkToastNotificationResult> = (<any>service).currentToastResult$

const privateObserver: Observer<StarkToastNotificationResult> = (<any>service).currentToastResult$;

expect(privateObserver.complete).not.toHaveBeenCalled();

service.hide();

/** Mimic MatSnackBar's behavior */
observer.next({ dismissedByAction: true });

tick();

expect(privateObserver.complete).toHaveBeenCalled();
Expand Down
12 changes: 6 additions & 6 deletions starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,23 +120,23 @@
"@angular/platform-server": "^13.4.0",
"@angular/router": "^13.4.0",
"@nationalbankbelgium/code-style": "^1.7.0",
"@nationalbankbelgium/stark-core": "latest",
"@nationalbankbelgium/stark-ui": "latest",
"@nationalbankbelgium/stark-core": "file:../dist/packages-dist/stark-core/nationalbankbelgium-stark-core-12.0.0-beta.0-f77a8ef0e-1706535335.tgz",
"@nationalbankbelgium/stark-ui": "file:../dist/packages-dist/stark-ui/nationalbankbelgium-stark-ui-12.0.0-beta.0-f77a8ef0e-1706535335.tgz",
"@uirouter/visualizer": "~7.2.1",
"core-js": "~3.21.1",
"eligrey-classlist-js-polyfill": "~1.2.20180112",
"hammerjs": "^2.0.8",
"http-server": "~14.1.0",
"ngrx-store-logger": "~0.2.2",
"reflect-metadata": "~0.1.13",
"rxjs": "^6.6.6",
"rxjs": "^7.8.1",
"zone.js": "~0.11.4"
},
"devDependencies": {
"@compodoc/compodoc": "1.1.19",
"@nationalbankbelgium/eslint-config": "^13.0.0",
"@nationalbankbelgium/stark-build": "latest",
"@nationalbankbelgium/stark-testing": "latest",
"@nationalbankbelgium/stark-build": "file:../dist/packages-dist/stark-build/nationalbankbelgium-stark-build-12.0.0-beta.0-f77a8ef0e-1706535335.tgz",
"@nationalbankbelgium/stark-testing": "file:../dist/packages-dist/stark-testing/nationalbankbelgium-stark-testing-12.0.0-beta.0-f77a8ef0e-1706535335.tgz",
"@types/core-js": "~2.5.4",
"@types/hammerjs": "~2.0.39",
"@types/node": "^18.19.4",
Expand All @@ -152,4 +152,4 @@
"ts-node": "~10.7.0",
"typescript": "~4.6.4"
}
}
}

0 comments on commit e5d9b74

Please sign in to comment.