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:
Hornwitser committed 2019-11-30 00:08:10 +01:00
1 parent 3bccbac496
commit bfff297d9a
4 files changed
+154 -89

No files matched your search

+6
View File
@@ -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(`