phantomscript
Version:
convert strings to zero-width unicode or vice-versa
15 lines (12 loc) • 357 B
JavaScript
/* global test */
import path from 'path'
import execa from 'execa'
import {t} from 'germs'
const CLI = `node ${path.resolve(__dirname, `../boo.js`)}`
test(`echo butts | boo -e | boo -d => "butts"`, (done) => {
t.plan(1)
execa.shell(`${CLI} -e "butts" | ${CLI} -d | ${CLI} -e | ${CLI} -d`).then((x) => {
t.is(x.stdout, `butts`)
done()
})
})