Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
minottic committed Sep 25, 2024
1 parent 1986005 commit 438cfb8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/app/app.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { MatToolbarModule } from "@angular/material/toolbar";
import { HttpClientModule } from "@angular/common/http";
import { APP_DYN_CONFIG } from "./app-config.service";
import { MockAppConfigService } from "./shared/MockStubs";
import { LoopBackConfig } from "./shared/sdk";

describe("AppComponent", () => {
beforeEach(waitForAsync(() => {
Expand Down Expand Up @@ -34,5 +35,8 @@ describe("AppComponent", () => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.componentInstance;
expect(app.title).toEqual("ESS Public Data Repository test");
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");
});
});
2 changes: 1 addition & 1 deletion src/app/shared/MockStubs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export class MockAppConfigService extends AppConfigService {
accessInstructions:
"Instructions: Login with brightness username and password",
scicatBaseUrl: "https://scicat.esss.se",
lbBaseUrl: "https://scicat.esss.se",
lbBaseURL: "https://scicat.esss.se/api",
retrieveToEmail: {
option: "URLs",
username: "lp_service",
Expand Down

0 comments on commit 438cfb8

Please sign in to comment.