diff --git a/src/app/services/link/link-builder.supplier.spec.ts b/src/app/services/link/link-builder.supplier.spec.ts index 6882b814..673eb9d7 100644 --- a/src/app/services/link/link-builder.supplier.spec.ts +++ b/src/app/services/link/link-builder.supplier.spec.ts @@ -8,7 +8,7 @@ import {NoSuchElementError} from "../../error/errors"; describe("An installation link supplier", () => { const mockConfigProvider: ConfigProvider = { - loadInstallation: (installationId: number): Promise => undefined + loadInstallation: (installationId: number): Promise> => Promise.resolve(Optional.empty()) }; const mockUserRepository: UserRepository = { @@ -66,7 +66,7 @@ describe("An installation link supplier", () => { .and.returnValue(Promise.resolve(Optional.of(user))); spyOn(mockConfigProvider, "loadInstallation") - .and.returnValue(Promise.resolve(installation)); + .and.returnValue(Promise.resolve(Optional.of(installation))); await expectAsync(subject.get()) .toBeResolvedTo(installation.url);