frisby:Frisby是基于Jest构建的REST API测试框架,可轻松,快速且有趣地测试API端点

时间:2021-02-05 15:59:09
【文件属性】:
文件名称:frisby:Frisby是基于Jest构建的REST API测试框架,可轻松,快速且有趣地测试API端点
文件大小:26KB
文件格式:ZIP
更新时间:2021-02-05 15:59:09
testing jasmine jest rest-api integration-testing 弗里斯比 介绍 Frisby.js是建立在之上的API测试工具,可轻松,快速且有趣地测试API端点。 安装 从NPM将Frisby v2.x安装到您的项目中: npm install frisby --save-dev 创建测试 简单的例子 运行单个测试期望的最低设置。 const frisby = require ( 'frisby' ) ; it ( 'should be a teapot' , function ( ) { // Return the Frisby.js Spec in the 'it()' (just like a promise) return frisb
【文件预览】:
frisby-master
----.eslintrc.json(531B)
----src()
--------frisby.js(3KB)
--------frisby()
----.npmignore(13B)
----.travis.yml(161B)
----__tests__()
--------frisby_spec.js(11KB)
--------fixtures()
--------expects_jsonTypes_spec.js(6KB)
--------expects_spec.js(3KB)
--------nested_spec.js(1KB)
--------expects_json_spec.js(6KB)
--------file_upload_spec.js(1KB)
--------expects_json_path_spec.js(5KB)
--------expects_not_spec.js(603B)
----README.md(5KB)
----.gitignore(73B)
----package.json(990B)

网友评论