Firefox extension initial
This commit is contained in:
parent
514bec9dcd
commit
12f1b0934e
|
@ -0,0 +1,2 @@
|
||||||
|
#BetterDiscord
|
||||||
|
BetterDiscord enhances Discord with several features
|
|
@ -0,0 +1,9 @@
|
||||||
|
var self = require('sdk/self');
|
||||||
|
|
||||||
|
// a dummy function, to show how tests work.
|
||||||
|
// to see how to test this function, look at test/test-index.js
|
||||||
|
function dummy(text, callback) {
|
||||||
|
callback(text);
|
||||||
|
}
|
||||||
|
|
||||||
|
exports.dummy = dummy;
|
|
@ -0,0 +1,15 @@
|
||||||
|
{
|
||||||
|
"title": "BetterDiscord",
|
||||||
|
"name": "betterdiscord",
|
||||||
|
"version": "0.0.1",
|
||||||
|
"description": "BetterDiscord enhances Discord with several features",
|
||||||
|
"main": "index.js",
|
||||||
|
"author": "Jiiks",
|
||||||
|
"engines": {
|
||||||
|
"firefox": ">=38.0a1"
|
||||||
|
},
|
||||||
|
"license": "MIT",
|
||||||
|
"keywords": [
|
||||||
|
"jetpack"
|
||||||
|
]
|
||||||
|
}
|
|
@ -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);
|
Loading…
Reference in New Issue