kopia lustrzana https://github.com/c9/core
47 wiersze
1.2 KiB
JavaScript
47 wiersze
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, {});
|
|
}
|
|
}); |