问题描述
我对mocha框架还很陌生,我想知道我们是否可以重用来自特定describe块的测试用例。
For example
//Test.js
describe("Reuse code here",function(){
it("Want to reuse this test case ",function () {
//do some test here .
})
})
//test1.js
in test1.js can I access the it block of test.js
解决方法
您能否将传递给它的功能重构为自己的功能?
例如 例如
ToString