UNPKG

svg-symbols

Version:
15 lines (13 loc) 399 B
var test = require('tape') var fs = require('fs') var nixt = require('nixt') var fixture = fs.readFileSync('./out.svg', 'utf8') // To run tests you need to run `npm i -g` from the root of this module test('should have correct output', function (t) { nixt() .expect(function (result) { t.equals(result.stdout, fixture.trim()) }) .run('svg-symbols ./fixtures') .end(t.end) })