Fix test
This commit is contained in:
parent
111fac6e47
commit
92c61c57c1
|
@ -1,4 +1,3 @@
|
||||||
import moment from 'moment';
|
|
||||||
import {ParsedNode, parseNode, parseNodesJson} from "./monitoringService";
|
import {ParsedNode, parseNode, parseNodesJson} from "./monitoringService";
|
||||||
import {Domain, MAC, OnlineState, Site, UnixTimestampSeconds} from "../types";
|
import {Domain, MAC, OnlineState, Site, UnixTimestampSeconds} from "../types";
|
||||||
import Logger from '../logger';
|
import Logger from '../logger';
|
||||||
|
@ -205,8 +204,8 @@ test('parseNode() should succeed parsing node without site and domain', () => {
|
||||||
importTimestamp: importTimestamp,
|
importTimestamp: importTimestamp,
|
||||||
state: OnlineState.ONLINE,
|
state: OnlineState.ONLINE,
|
||||||
lastSeen: TIMESTAMP_VALID,
|
lastSeen: TIMESTAMP_VALID,
|
||||||
site: "<unknown-site>" as Site,
|
site: undefined,
|
||||||
domain: "<unknown-domain>" as Domain,
|
domain: undefined,
|
||||||
};
|
};
|
||||||
expect(parseNode(importTimestamp, nodeData)).toEqual(expectedParsedNode);
|
expect(parseNode(importTimestamp, nodeData)).toEqual(expectedParsedNode);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue