diff options
author | Einar Egilsson <einar@einaregilsson.com> | 2015-09-18 15:42:21 +0000 |
---|---|---|
committer | Einar Egilsson <einar@einaregilsson.com> | 2015-09-18 15:42:21 +0000 |
commit | b2ba3216ea5dbe6a74fdfa75611fce95c1481316 (patch) | |
tree | 0ed80d05edc5497d64455197a04fabec7aa8d69d /test | |
parent | 862d738c79dc6f8188d3f9fefd46c01179041710 (diff) |
Halfway to making Firefox compatible
Diffstat (limited to 'test')
-rw-r--r-- | test/test-index.js | 19 |
1 files changed, 19 insertions, 0 deletions
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); |