Skip to content

Commit

Permalink
fix: TS errors in test
Browse files Browse the repository at this point in the history
  • Loading branch information
GPaoloni committed Jan 2, 2025
1 parent 31ada77 commit 3d5a281
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions resources-domain/resources-service/tests/service/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>;
} = {
authTokenLookup: () => 'picernic basket',
authTokenLookup: () => Promise.resolve('picernic basket'),
};

export const getServer = (config?: Partial<typeof defaultConfig>) => {
Expand Down

0 comments on commit 3d5a281

Please sign in to comment.