-
Notifications
You must be signed in to change notification settings - Fork 3
/
phpcs.wpcs_test.js
47 lines (36 loc) · 1.17 KB
/
phpcs.wpcs_test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
"use client";
"use mocha";
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, {});
}
});