Skip to content

Commit

Permalink
Call ngOnInit explicitely
Browse files Browse the repository at this point in the history
  • Loading branch information
minottic committed Sep 25, 2024
1 parent 438cfb8 commit 327dba5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/app/app.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,13 @@ describe("AppComponent", () => {
expect(app.config.lbBaseURL).toEqual("https://scicat.esss.se/api");
expect(LoopBackConfig.getPath()).toEqual("https://scicat.esss.se/api");
});

it(`should test app config values'`, () => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.componentInstance;
app.ngOnInit();
expect(app.config.scicatBaseUrl).toEqual("https://scicat.esss.se");
expect(app.config.lbBaseURL).toEqual("https://scicat.esss.se/api");
expect(LoopBackConfig.getPath()).toEqual("https://scicat.esss.se/api");
});
});

0 comments on commit 327dba5

Please sign in to comment.