Firefox extension initial

This commit is contained in:
Jiiks 2015-12-21 09:41:28 +02:00
parent 514bec9dcd
commit 12f1b0934e
4 changed files with 45 additions and 0 deletions

2
Firefox/README.md Normal file
View File

@ -0,0 +1,2 @@
#BetterDiscord
BetterDiscord enhances Discord with several features

9
Firefox/index.js Normal file
View File

@ -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;

15
Firefox/package.json Normal file
View File

@ -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"
]
}

View File

@ -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);