From 92c61c57c1868f1bd3d7295503af4589b645d5c0 Mon Sep 17 00:00:00 2001 From: baldo Date: Thu, 28 Jul 2022 15:08:41 +0200 Subject: [PATCH] Fix test --- server/services/monitoringService.test.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server/services/monitoringService.test.ts b/server/services/monitoringService.test.ts index 92486fe..81769f4 100644 --- a/server/services/monitoringService.test.ts +++ b/server/services/monitoringService.test.ts @@ -1,4 +1,3 @@ -import moment from 'moment'; import {ParsedNode, parseNode, parseNodesJson} from "./monitoringService"; import {Domain, MAC, OnlineState, Site, UnixTimestampSeconds} from "../types"; import Logger from '../logger'; @@ -205,8 +204,8 @@ test('parseNode() should succeed parsing node without site and domain', () => { importTimestamp: importTimestamp, state: OnlineState.ONLINE, lastSeen: TIMESTAMP_VALID, - site: "" as Site, - domain: "" as Domain, + site: undefined, + domain: undefined, }; expect(parseNode(importTimestamp, nodeData)).toEqual(expectedParsedNode); });