aboutsummaryrefslogtreecommitdiff
path: root/test/test-index.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-index.js')
-rw-r--r--test/test-index.js19
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);