无法在itParam()

时间:2019-05-03 19:04:13

标签: mocha parameter-passing

如何在mocha-param中添加仅支持功能和跳过功能?

import { itParam } from "mocha-param";

context("Test_XYZ" {
  itParam.only("MyTest_${value}",  [A,B,C], data => {
    //Do some assertion with data
  });

  itParam.skip("MyTest_${value}",  [A,B,C], data => {
    //Do some assertion with data
  });
});

0 个答案:

没有答案