assert-http:测试助手以测试HTTP接口

时间:2021-05-04 05:51:05
【文件属性】:
文件名称:assert-http:测试助手以测试HTTP接口
文件大小:51KB
文件格式:ZIP
更新时间:2021-05-04 05:51:05
JavaScript 断言HTTP 测试帮助程序以测试HTTP接口。 该库包含两个主要接口。 一个测试运行程序,它执行目录中文件所描述的一组HTTP调用以及assert模块的扩展。 HTTP测试接口 使用 ,用法看起来像; describe('api server', function(done) { fixtures.load('/path/to/tests/').forEach(function(test) { it(test.name, function(done) { fixtures.runtest(test, {handlers: handlers, clean: clean}, done); }); }); }); assertHTTP.load(dirname) 同步功能,可从目录加载文本装置。 返回测试对象的数组。
【文件预览】:
assert-http-master
----.gitignore(23B)
----README.md(2KB)
----CHANGELOG.md(317B)
----test()
--------mocha.tests.js(6KB)
--------fixtures()
----LICENSE(1KB)
----package.json(656B)
----index.js(13KB)
----assert.js(4KB)
----.npmignore(20B)
----.travis.yml(186B)

网友评论