【发布时间】:2017-05-30 09:06:06
【问题描述】:
我正在使用strong-soap 模块从 SOAP 请求中获取数据。
var soap = require('strong-soap').soap;
soap.createClient(url, options, function (err, client) {
var method = client.GetInfoSOAP;
method(requestQuery, function (err, info) {
// bla bla
}
}
我正在获取所需的数据。现在
我想编写单元测试用例来模拟使用sinon 存根的SOAP 请求,但没有取得任何成功。任何帮助,将不胜感激。
【问题讨论】:
-
我的回答对你有帮助吗?
标签: node.js unit-testing soap sinon strong-soap