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

    Install

    npm i @botphus/rule

    DownloadsWeekly Downloads

    0

    Version

    0.1.3

    License

    MIT

    Unpacked Size

    132 kB

    Total Files

    29

    Last publish

    Collaborators

    • cqggff