yeoman-assert:yeoman的断言实用程序

时间:2021-05-26 03:29:59
【文件属性】:
文件名称:yeoman-assert:yeoman的断言实用程序
文件大小:9KB
文件格式:ZIP
更新时间:2021-05-26 03:29:59
JavaScript 断言 yeoman-assert正在扩展本机Node.js assert模块。 yeoman-assert assert还可以使用assert每个方法,以及一些与代码框架相关的断言帮助器。 安装 $ npm install yeoman-assert 用法 const assert = require ( 'yeoman-assert' ) ; assert ( true ) ; assert . equal ( 1 , 1 ) ; 原料药 assert.file() path (String | Array)文件的路径。 断言文件存在。 assert . file ( 'templates/user.hbs' ) ; 断言数组中的每个文件都存在。 assert . file ( [ 'templates/user.hbs' , 'templates/user/edit
【文件预览】:
yeoman-assert-main
----.gitattributes(29B)
----fixtures()
--------testFile(15B)
--------dummy.json(60B)
--------testFile2(18B)
----test.js(11KB)
----license(1KB)
----.travis.yml(51B)
----gulpfile.js(1KB)
----README.md(4KB)
----.npmrc(19B)
----.editorconfig(130B)
----.gitignore(32B)
----index.js(8KB)
----package.json(887B)

网友评论