fix(loading): update loading checks to use signal() for reactive state management (#727)

This commit is contained in:
brios
2026-04-22 17:27:43 -04:00
committed by Zach Yale
parent 7a88b12430
commit 284e7bec49
59 changed files with 577 additions and 345 deletions
+2 -2
View File
@@ -136,7 +136,7 @@ describe("AppComponent", () => {
it("boots the websocket wiring when auth initialization is ready", () => {
configureComponent();
expect(component.loading).toBe(false);
expect(component.loading()).toBe(false);
expect(libraryHealthService.initWebsocket).toHaveBeenCalledOnce();
expect(libraryHealthService.fetchHealth).toHaveBeenCalledOnce();
expect(rxStompService.watch).toHaveBeenCalledWith("/user/queue/book-add");
@@ -148,7 +148,7 @@ describe("AppComponent", () => {
it("boots the websocket wiring but don't fetch library health when not authenticated", () => {
configureComponent({ ready: true, authenticated: false });
expect(component.loading).toBe(false);
expect(component.loading()).toBe(false);
expect(libraryHealthService.initWebsocket).toHaveBeenCalledOnce();
expect(libraryHealthService.fetchHealth).not.toHaveBeenCalled();
});