Skip to content

Latest commit

 

History

History

README.md

@supertape/operator-strip NPM version Build Status Coverage Status

supertape operator simplifies work with colored and indented output.

Install

npm i @supertape/operator-strip -D

Operators

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