mirror of
https://github.com/chylex/Firefox-SCsCC.git
synced 2025-09-18 17:24:54 +02:00
data
test
test-index.js
test.html
.gitignore
LICENSE
README.md
index.js
package.json
20 lines
427 B
JavaScript
20 lines
427 B
JavaScript
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);
|