MCPcopy
hub / github.com/madeleineostoja/rucksack / cliTest

Function cliTest

test/test.js:48–61  ·  view source on GitHub ↗
(fixture, args, done)

Source from the content-addressed store, hash-verified

46};
47
48function cliTest(fixture, args, done) {
49 let input = fixture + '.css',
50 expected = fixture + '.expected.css';
51
52 input = path.join(__dirname, 'fixtures', input);
53 expected = path.join(__dirname, 'fixtures', expected);
54
55 cli([input, args], (err, out, code) => {
56 expect(out).to.eql(fs.readFileSync(expected, 'utf8'));
57 expect(err).to.be.empty;
58 expect(code).to.eql(0);
59 done();
60 });
61};
62
63describe('Rucksack', () => {
64

Callers 1

test.jsFile · 0.85

Calls 1

cliFunction · 0.85

Tested by

no test coverage detected