From 1423f6e58fa5463714297120f20bb459c64b48a2 Mon Sep 17 00:00:00 2001 From: Waylon Flinn Date: Thu, 21 Apr 2016 12:06:29 -0500 Subject: [PATCH] unit testing setup --- package.json | 5 +++-- test/all.js | 9 +++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 test/all.js diff --git a/package.json b/package.json index 9ce9a9f..98bc56d 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "index.js", "scripts": { "watch": "watchify browser.js -o bundle.js -v", - "test": "echo \"Error: no test specified\" && exit 1" + "test": "node test/all.js" }, "repository": { "type": "git", @@ -24,6 +24,7 @@ "katex": "^0.5.1" }, "devDependencies": { - "markdown-it": "^6.0.0" + "markdown-it": "^6.0.0", + "tape": "^4.5.1" } } diff --git a/test/all.js b/test/all.js new file mode 100644 index 0000000..cb1003f --- /dev/null +++ b/test/all.js @@ -0,0 +1,9 @@ +var tape = require('tape'), + mdk = require('../index'); + + +tape("hello tape", function(t){ + t.plan(1); + + t.assert(true, "it works!"); +});