mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-11 23:04:52 +09:00
Drops tests that restate message declarations, check that removed commands are gone, test internal helpers or repeat the same behaviour at another layer.
19 lines
605 B
JavaScript
19 lines
605 B
JavaScript
import { HostPairingDetails } from "@clusterio/lib";
|
|
|
|
import { testMatrix, testRoundTripJsonSerialisable } from "../../common.js";
|
|
|
|
describe("lib/data/HostPairingDetails", function () {
|
|
|
|
it("should be round trip serialisable", function () {
|
|
testRoundTripJsonSerialisable(HostPairingDetails, testMatrix(
|
|
["ABC-DEF"], // code (required)
|
|
["New Host", ""], // name (required)
|
|
["10.0.0.1", "2001:db8::1"], // remoteAddress (required)
|
|
[undefined, "2.0.0"], // version
|
|
[undefined, 123456], // createdAtMs
|
|
[undefined, 999999], // updatedAtMs
|
|
[undefined, true], // isDeleted
|
|
));
|
|
});
|
|
});
|