Fix test

This commit is contained in:
Manuel 2023-02-19 21:27:00 +01:00
parent 5d5023e91a
commit 8d8681e4d9

View File

@ -5,8 +5,11 @@ import {
} from '@nestjs/terminus';
import { HealthCheckExecutor } from '@nestjs/terminus/dist/health-check/health-check-executor.service';
import { Test } from '@nestjs/testing';
import { useDefaultMockerToken } from '../utils/tests/defaultMockerToken';
import { HealthController } from './health.controller';
import { DiscordHealthIndicator } from './indicators/discord.indicator';
import { JellyfinHealthIndicator } from './indicators/jellyfin.indicator';
@ -39,7 +42,7 @@ describe('HealthController', () => {
}
if (token === HealthCheckService) {
return new HealthCheckService(new HealthCheckExecutor(), null);
return new HealthCheckService(new HealthCheckExecutor(), null, null);
}
return useDefaultMockerToken(token);