Lines Matching refs:func
20 const describe = function (desc, func) {
21 return Reflect.has(core, 'describe') ? core.describe(desc, func) : (desc, func) => { };
23 const it = function (desc, filter, func) {
24 return Reflect.has(core, 'it') ? core.it(desc, filter, func) : (desc, filter, func) => { };
26 const beforeItSpecified = function (itDescs, func) {
27 return Reflect.has(core, 'beforeItSpecified') ? core.beforeItSpecified(itDescs, func) : (itDescs, func) => { };
30 const afterItSpecified = function (itDescs, func) {
31 return Reflect.has(core, 'afterItSpecified') ? core.afterItSpecified(itDescs, func) : (itDescs, func) => { };
33 const beforeEach = function (func) {
34 return Reflect.has(core, 'beforeEach') ? core.beforeEach(func) : (func) => { };
36 const afterEach = function (func) {
37 return Reflect.has(core, 'afterEach') ? core.afterEach(func) : (func) => { };
39 const beforeAll = function (func) {
40 return Reflect.has(core, 'beforeAll') ? core.beforeAll(func) : (func) => { };
42 const afterAll = function (func) {
43 return Reflect.has(core, 'afterAll') ? core.afterAll(func) : (func) => { };
49 const xdescribe = function (desc, func) {
50 return Reflect.has(core, 'xdescribe') ? core.xdescribe(desc, func, null) : (desc, func, reason) => { };
53 return (desc, func) => {
54 return Reflect.has(core, 'xdescribe') ? core.xdescribe(desc, func, reason) : (desc, func, reason) => { };
57 const xit = function (desc, filter, func) {
58 return Reflect.has(core, 'xit') ? core.xit(desc, filter, func, null) : (desc, filter, func, reason) => { };
61 return (desc, filter, func) => {
62 return Reflect.has(core, 'xit') ? core.xit(desc, filter, func, reason) : (desc, filter, func, reason) => { };