eslint-plugin-mocha
Version:
Eslint rules for mocha.
20 lines • 518 B
JavaScript
export const allowMochaCallOptionSchema = {
type: 'object',
properties: {
allow: {
type: 'array',
items: {
type: 'string'
}
}
},
additionalProperties: false
};
export const defaultAllowMochaCallOption = { allow: [] };
export function normalizeMochaCallName(value) {
if (typeof value !== 'string') {
return '';
}
return value.endsWith('()') ? value : `${value}()`;
}
//# sourceMappingURL=mocha-call-allowance.js.map