mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-17 15:33:12 +09:00
Split up into multiple packages with Lerna
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.
This commit is contained in:
1 parent
198d5c344b
commit
bf5a4a8a9c
133 files changed
+367
-259
No files matched your search
+3
-8
@@ -1,24 +1,19 @@
|
||||
"use strict";
|
||||
const assert = require("assert").strict;
|
||||
const chalk = require("chalk");
|
||||
|
||||
const { testLines } = require("./lib/factorio/lines");
|
||||
const clusterctl = require("../clusterctl.js");
|
||||
const clusterctl = require("@clusterio/ctl/clusterctl.js");
|
||||
|
||||
|
||||
describe("clusterctl", function() {
|
||||
describe("formatOutputColored()", function() {
|
||||
it("should pass the test lines", function() {
|
||||
// Ensure tests get uncoloured output.
|
||||
let old = chalk.level;
|
||||
chalk.level = 0;
|
||||
|
||||
for (let [reference, output] of testLines) {
|
||||
let line = clusterctl._formatOutputColored(output);
|
||||
// Strip colours
|
||||
line = line.replace(/\x1B\[\d+m/g, "");
|
||||
assert.deepEqual(line, reference);
|
||||
}
|
||||
|
||||
chalk.level = old;
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user