@botphus/rule
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

@botphus/rule

@botphus/rulebotphus的核心测试规则程序,提供web测试单元任务验证.

build status codecov.io node version

索引

快速使用

安装

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);
    });

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.3
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.3
    0
  • 0.1.2
    0
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i @botphus/rule

Weekly Downloads

0

Version

0.1.3

License

MIT

Unpacked Size

132 kB

Total Files

29

Last publish

Collaborators

  • cqggff