mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-13 15:14:52 +09:00
Split up codebase into the packages @clsterio/lib, @clusterio/master, @clusterio/slave, and @clusterio/ctl using lerna to manage them. This will allow deployment to use only the parts needed reducing install size, and better separate the code into shared library, master, slave and control.
20 lines
533 B
JavaScript
20 lines
533 B
JavaScript
"use strict";
|
|
const assert = require("assert").strict;
|
|
|
|
const { testLines } = require("./lib/factorio/lines");
|
|
const clusterctl = require("@clusterio/ctl/clusterctl.js");
|
|
|
|
|
|
describe("clusterctl", function() {
|
|
describe("formatOutputColored()", function() {
|
|
it("should pass the test lines", function() {
|
|
for (let [reference, output] of testLines) {
|
|
let line = clusterctl._formatOutputColored(output);
|
|
// Strip colours
|
|
line = line.replace(/\x1B\[\d+m/g, "");
|
|
assert.deepEqual(line, reference);
|
|
}
|
|
});
|
|
});
|
|
});
|