This commit is contained in:
baldo 2022-07-28 15:08:41 +02:00
parent 111fac6e47
commit 92c61c57c1

View file

@ -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: "<unknown-site>" as Site,
domain: "<unknown-domain>" as Domain,
site: undefined,
domain: undefined,
};
expect(parseNode(importTimestamp, nodeData)).toEqual(expectedParsedNode);
});