From 3d5a28107971ffd0e51fcacafdd2fc98d4ea93ff Mon Sep 17 00:00:00 2001 From: Gianfranco Paoloni Date: Thu, 2 Jan 2025 16:08:27 -0300 Subject: [PATCH] fix: TS errors in test --- resources-domain/resources-service/tests/service/server.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/resources-domain/resources-service/tests/service/server.ts b/resources-domain/resources-service/tests/service/server.ts index 2c0d078ab..d39e0f0b6 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) => {