mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
47 lines
1.2 KiB
JavaScript
47 lines
1.2 KiB
JavaScript
"use client";
|
|
|
|
|
|
define(function(require, exports, module) {
|
|
main.consumes = ["plugin.test", "myplugin"];
|
|
main.provides = [];
|
|
return main;
|
|
|
|
function main(options, imports, register) {
|
|
var test = imports["plugin.test"];
|
|
var myplugin = imports.myplugin;
|
|
|
|
var describe = test.describe;
|
|
var it = test.it;
|
|
var before = test.before;
|
|
var after = test.after;
|
|
var beforeEach = test.beforeEach;
|
|
var afterEach = test.afterEach;
|
|
var assert = test.assert;
|
|
var expect = test.expect;
|
|
|
|
/***** Initialization *****/
|
|
|
|
describe("The module", function() {
|
|
this.timeout(2000);
|
|
|
|
beforeEach(function() {
|
|
});
|
|
|
|
afterEach(function () {
|
|
});
|
|
|
|
it("has a sync test", function() {
|
|
});
|
|
|
|
it("has a async test", function(done) {
|
|
done();
|
|
});
|
|
|
|
it("has a failing test", function() {
|
|
assert.equal(10, 11);
|
|
});
|
|
});
|
|
|
|
register(null, {});
|
|
}
|
|
}); |