@botphus/rule
v0.1.3
Published
Testing Rule management lib for botphus
Downloads
1
Readme
@botphus/rule
@botphus/rule
是botphus
的核心测试规则程序,提供web测试单元任务验证.
索引
快速使用
安装
npm install @botphus/rule --save
构建
npm run build
使用
import BotphusRule, {TaskType, TaskTypeDomSubType} from '@botphus/rule';
const botphusRule = new BotphusRule();
botphusRule.validRule([
{
argments: ['div'],
assertion: ['data === "wrong assertion rule"'],
subType: TaskTypeDomSubType.SUB_TYPE_GET_TEXT,
type: TaskType.TYPE_DOM
}
])
.catch((err) => {
console.log(err);
});