@supertape/operator-strip
v1.0.0
Published
supertape strip operator
Maintainers
Readme
@supertape/operator-strip

supertape operator simplifies work with colored and indented output.
Install
npm i @supertape/operator-strip -DOperators
Adds next operators to work with:
stripEqual(fn, args [, message])
import {extend} from 'supertape';
import strip from '@supertape/operator-strip';
import montag from 'montag';
const test = extend(strip);
test('redlint: strip', (t) => {
const [, result] = redlintTest(filesystem, {
branch,
});
const expected = montag`
# 🍄 hello
`;
t.stripEqual(result, expected);
t.end();
});t.stripEndEqual(fn[, message])
import test, {strip} from 'supertape';
import montag from 'montag';
test('function called with no args', (t) => {
const expected = montag`
# 🍀 hello
`;
t.stripEndEqual(result, expected);
t.end();
});License
MIT
