'use strict' const test = require('tap').test const helpFormatter = require('../lib/help-formatter.js') test('help formatter', function (t) { t.equal(helpFormatter('Title v{{version}}', '1.2.3'), 'Title v1.2.3') t.equal( helpFormatter('
CODE', '1.0.0'),
'\x1B[33mCODE\x1B[39m'
)
t.equal(
helpFormatter('CODE', '1.0.0'),
'\x1B[4mCODE\x1B[24m'
)
t.end()
})