mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-20 15:43:13 +09:00
Add tests for clusterctl's output formatting
Add tests for formatOutput and formatOutputColored by using the same lines as the line parser uses for testing.
This commit is contained in:
1 parent
3bccbac496
commit
bfff297d9a
4 files changed
+154
-89
No files matched your search
@@ -432,6 +432,12 @@ async function startControl() {
|
||||
//XXX control.close("done");
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
// for testing only
|
||||
_formatOutputColored: formatOutputColored,
|
||||
_formatOutput: formatOutput,
|
||||
}
|
||||
|
||||
|
||||
if (module === require.main) {
|
||||
console.warn(`
|
||||
|
||||
Reference in new issue
Block a user