如何使用文件参数进行摩卡/ chaitesting?
我有一个文件通常在命令行中运行
节点index.js myFile.bmp
我如何开始使用摩卡/ cha进行testing?
TIA
使用以下内容创build一个名为index-test.js的文件:
var index = require('./index'); describe('index', function() { // add your tests here });
我有一个文件通常在命令行中运行
节点index.js myFile.bmp
我如何开始使用摩卡/ cha进行testing?
TIA
使用以下内容创build一个名为index-test.js的文件:
var index = require('./index'); describe('index', function() { // add your tests here });