pure/test/index.js

12 lines
366 B
JavaScript
Raw Normal View History

2016-12-20 06:49:35 +00:00
var tap = require('tap');
var pure = require('../index.js');
// api
tap.ok(pure.getFile);
tap.ok(pure.getFilePath);
// assertions
2020-05-16 18:09:14 +00:00
tap.match(pure.getFile('pure-min.css'), /pure-button/, 'should load the file');
tap.match(pure.getFilePath('pure-min.css'), /pure-min\.css/, 'should return file path');
2016-12-20 06:49:35 +00:00
tap.throws(pure.getFile, new Error('undefined does not exist'));