Browse Source

Setup tests

pull/2/head
Luke Childs 9 years ago
parent
commit
e713a06034
  1. 3
      package.json
  2. 0
      test/fixtures/input
  3. 7
      test/unit.js

3
package.json

@ -10,7 +10,7 @@
"prebuild": "rm -rf dist",
"build": "babel -d dist src",
"lint": "eslint src",
"test": "echo \"Error: no test specified\" && exit 1",
"test": "ava test",
"prepublish": "npm run build"
},
"babel": {
@ -46,6 +46,7 @@
},
"homepage": "https://github.com/lukechilds/htconvert#readme",
"devDependencies": {
"ava": "^0.15.1",
"babel-cli": "^6.9.0",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-preset-es2015": "^6.9.0",

0
test/fixtures/input

7
test/unit.js

@ -0,0 +1,7 @@
import test from 'ava';
import htconvert from '../dist/htconvert';
test('htconvert should export a function', t => {
t.is(typeof htconvert, 'function');
});
Loading…
Cancel
Save