Port ctl package to TypeScript

This commit is contained in:
Hornwitser committed 2023-08-12 20:36:33 +02:00
1 parent 5ec7c9f99c
commit ec0fded0cc
6 files changed
+383 -244

No files matched your search

-8
View File
@@ -1,8 +0,0 @@
"use strict";
const assert = require("assert").strict;
const clusterioctl = require("@clusterio/ctl/ctl.js");
describe("clusterioctl", function() {
});
+1 -1
View File
@@ -821,7 +821,7 @@ describe("Integration of Clusterio", function() {
let modPacks = await getControl().send(new lib.ModPackListRequest());
let modPack = modPacks.find(entry => entry.name === "full-pack");
assert(modPack, "created mod pack not found");
let reference = lib.ModPack.fromJSON({});
let reference = lib.ModPack.fromJSON({ factorio_version: "0.17.59" });
reference.id = modPack.id;
reference.name = "full-pack";
reference.description = "Description";