mixed-tape:同时运行磁带测试

时间:2021-05-30 17:10:22
【文件属性】:
文件名称:mixed-tape:同时运行磁带测试
文件大小:9KB
文件格式:ZIP
更新时间:2021-05-30 17:10:22
JavaScript 混合带 在节点和浏览器中同时运行测试的替代品(使用 )。 安装 npm install --save-dev mixed-tape tape / yarn add -D mixed-tape tape 用法 const tape = require ( 'tape' ) const mixedTape = require ( 'mixed-tape' ) const test = mixedTape ( tape ) test ( 'first test' , t => { setTimeout ( ( ) => { t . equals ( 1 , 1 , 'why not?' ) t . end ( ) } , 1000 ) } ) test ( 'second test' , t => { setTimeout ( ( ) => { t .
【文件预览】:
mixed-tape-master
----.eslintrc.json(28B)
----.babelrc(64B)
----lib()
--------tap-output.js(902B)
--------pipeline.js(2KB)
--------api.js(1KB)
----.travis.yml(75B)
----util()
--------browserify.build.js(323B)
----test()
--------basic.spec.js(4KB)
--------api.spec.js(5KB)
----LICENSE.md(1KB)
----README.md(3KB)
----.npmrc(19B)
----.editorconfig(178B)
----.gitignore(13B)
----index.js(624B)
----package.json(1KB)

网友评论