ghostface:在PhantomJS中评估Javascript,并输出输出

时间:2021-05-07 07:43:35
【文件属性】:
文件名称:ghostface:在PhantomJS中评估Javascript,并输出输出
文件大小:21KB
文件格式:ZIP
更新时间:2021-05-07 07:43:35
testing browser phantomjs headless-testing JavaScript 鬼脸 在PhantomJS中评估javascript,然后输出输出。 受启发,此模块使在无头浏览器中运行测试变得微不足道。 安装 npm install -g ghostface将在您的环境中公开ghostface命令。 ghostface不包括作为依赖; 您应该安装它,但是它在您的环境中最有效,并且只要它存在于$PATH , ghostface就会找到它。 ghostface支持phantomjs版本^1.9.0或^2.0.0 。 例子 想象一下您正在使用测试的项目: // file: test.js var test = require ( 'tape' ) test ( 'always passes' , function ( t ) { t . plan ( 1 ) t . pass ( ) } ) 用ghostface运行它: $ browserify tes
【文件预览】:
ghostface-master
----client()
--------default.html(85B)
--------phantom-client.js(1KB)
----lib()
--------sourcemap.js(584B)
--------index.js(3KB)
--------cli.js(4KB)
----.travis.yml(109B)
----LICENSE(11KB)
----test()
--------fixtures()
--------index.js(4KB)
--------cli.js(2KB)
--------stubs()
----README.md(3KB)
----docs()
--------using-ghostface-programatically.md(997B)
----.gitignore(13B)
----bin()
--------ghostface.js(834B)
----CHANGELOG.md(3KB)
----package.json(1KB)

网友评论