mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-16 07:24:53 +09:00
Merge pull request #1010 from bbassie/feature/plugin-browser
Plugin management through web interface
This commit is contained in:
1 parent
e36a76acc5
commit
ffe82f81d8
48 files changed
+4275
-536
No files matched your search
@@ -1,6 +1,7 @@
|
||||
import assert from "node:assert/strict";
|
||||
|
||||
import { SystemInfo } from "@clusterio/lib";
|
||||
import { PluginDetails, SystemInfo } from "@clusterio/lib";
|
||||
import { testRoundTripJsonSerialisable } from "../../common.js";
|
||||
|
||||
|
||||
describe("lib/data/SystemInfo", function() {
|
||||
@@ -32,5 +33,16 @@ describe("lib/data/SystemInfo", function() {
|
||||
assert.equal(system.diskUsed, 1536);
|
||||
assert.equal(system.diskRatio, 0.75);
|
||||
});
|
||||
it("has round trip json serialisation", function() {
|
||||
const base = [
|
||||
1, "host", "v22.0.0", "Linux", "x86_64", "CPU", [0.5],
|
||||
1024, 768, 2048, 512, true, false, 0, 0, 0, false,
|
||||
];
|
||||
testRoundTripJsonSerialisable(SystemInfo, [
|
||||
base,
|
||||
[...base, []],
|
||||
[...base, [new PluginDetails("name", "Title", "1.0.0", true, true, undefined, "name", "1.1.0")]],
|
||||
]);
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user