mirror of
https://github.com/informaticker/discord-jellyfin-bot.git
synced 2024-11-24 18:41:57 +01:00
✅ Fix test
This commit is contained in:
parent
5d5023e91a
commit
8d8681e4d9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user