@@ -31,7 +31,6 @@ import { SyncService } from "../../database/sync.service";
3131import { KeycloakAuthService } from "../auth/keycloak/keycloak-auth.service" ;
3232import { Database } from "../../database/database" ;
3333import { Router } from "@angular/router" ;
34- import { AppSettings } from "../../app-settings" ;
3534import { NAVIGATOR_TOKEN } from "../../../utils/di-tokens" ;
3635import { CurrentUserSubject } from "../current-user-subject" ;
3736import { EntityMapperService } from "../../entity/entity-mapper/entity-mapper.service" ;
@@ -48,8 +47,8 @@ describe("SessionManagerService", () => {
4847 let mockKeycloak : jasmine . SpyObj < KeycloakAuthService > ;
4948 let mockNavigator : { onLine : boolean } ;
5049 let dbUser : SessionInfo ;
51- const userDBName = `${ TEST_USER } -${ AppSettings . DB_NAME } ` ;
52- const deprecatedDBName = AppSettings . DB_NAME ;
50+ const userDBName = `${ TEST_USER } -${ environment . DB_NAME } ` ;
51+ const deprecatedDBName = environment . DB_NAME ;
5352 let initInMemorySpy : jasmine . Spy ;
5453 let initIndexedSpy : jasmine . Spy ;
5554
@@ -242,11 +241,11 @@ describe("SessionManagerService", () => {
242241 await service . remoteLogin ( ) ;
243242
244243 expect ( initInMemorySpy ) . toHaveBeenCalledWith (
245- TEST_USER + "-" + AppSettings . DB_NAME ,
244+ TEST_USER + "-" + environment . DB_NAME ,
246245 ) ;
247246 } ) ;
248247
249- it ( "should create the database according to the session type in the AppSettings " , async ( ) => {
248+ it ( "should create the database according to the session type in the environment " , async ( ) => {
250249 async function testDatabaseCreation (
251250 sessionType : SessionType ,
252251 expectedDB : "inMemory" | "indexed" ,
0 commit comments