diff --git a/resources-domain/resources-service/tests/service/server.ts b/resources-domain/resources-service/tests/service/server.ts index 2c0d078a..d39e0f0b 100644 --- a/resources-domain/resources-service/tests/service/server.ts +++ b/resources-domain/resources-service/tests/service/server.ts @@ -24,12 +24,11 @@ import { import express from 'express'; import { configureInternalService, configureService } from '../../src/service'; -import { HrmAccountId } from '@tech-matters/types'; export const defaultConfig: { - authTokenLookup: (accountSid: HrmAccountId) => string; + authTokenLookup: (accountSid: string) => Promise; } = { - authTokenLookup: () => 'picernic basket', + authTokenLookup: () => Promise.resolve('picernic basket'), }; export const getServer = (config?: Partial) => {