From b2ba3216ea5dbe6a74fdfa75611fce95c1481316 Mon Sep 17 00:00:00 2001 From: Einar Egilsson Date: Fri, 18 Sep 2015 15:42:21 +0000 Subject: Halfway to making Firefox compatible --- test/test-index.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/test-index.js (limited to 'test/test-index.js') diff --git a/test/test-index.js b/test/test-index.js new file mode 100644 index 0000000..b3ad6e8 --- /dev/null +++ b/test/test-index.js @@ -0,0 +1,19 @@ +var main = require("../"); + +exports["test main"] = function(assert) { + assert.pass("Unit test running!"); +}; + +exports["test main async"] = function(assert, done) { + assert.pass("async Unit test running!"); + done(); +}; + +exports["test dummy"] = function(assert, done) { + main.dummy("foo", function(text) { + assert.ok((text === "foo"), "Is the text actually 'foo'"); + done(); + }); +}; + +require("sdk/test").run(exports); -- cgit v1.2.3