1
0
Fork 0

unit testing setup

This commit is contained in:
Waylon Flinn 2016-04-21 12:06:29 -05:00
parent 1922f1d732
commit 1423f6e58f
2 changed files with 12 additions and 2 deletions

View file

@ -5,7 +5,7 @@
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"watch": "watchify browser.js -o bundle.js -v", "watch": "watchify browser.js -o bundle.js -v",
"test": "echo \"Error: no test specified\" && exit 1" "test": "node test/all.js"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@ -24,6 +24,7 @@
"katex": "^0.5.1" "katex": "^0.5.1"
}, },
"devDependencies": { "devDependencies": {
"markdown-it": "^6.0.0" "markdown-it": "^6.0.0",
"tape": "^4.5.1"
} }
} }

9
test/all.js Normal file
View file

@ -0,0 +1,9 @@
var tape = require('tape'),
mdk = require('../index');
tape("hello tape", function(t){
t.plan(1);
t.assert(true, "it works!");
});