colorprint
Version:
Print ansi-colored message to stdout/stderr.
18 lines (14 loc) • 314 B
JavaScript
/**
* Test case for indentMsg.
* Runs with mocha.
*/
const indentMsg = require('../lib/msg/indent_msg.js')
const assert = require('assert')
describe('indent', () => {
it('Indent msg', (done) => {
assert.equal(indentMsg('foo', 2).trim(), 'foo')
done()
})
})
/* global describe, it */