frisby.js

Get method of frisby does not work with https

会有一股神秘感。 提交于 2019-12-23 16:34:11
问题 I am new to frisby test. today i found I can't access https://ip address from friby api for example: frisby.create('my test').get("https://199.59.148.20") output: connect error frisby.create('my test').get("https://api.twitter.com") this one works please advise! 回答1: This is beacuse the unsafe connection (non-trusted SSL certificate). If you open same URL in a browser, it will ask for confirmation before to continue with the insecure connection. To do the same thing in frisby , add a second

jasmine is not defined

我们两清 提交于 2019-12-13 05:44:42
问题 I am trying to run a rest API test on Enide Studio using friby.js and Jasmine. I got this error: C:\Users\xxxx\AppData\Roaming\npm\node_modules\frisby\lib\frisby.js:1125 jasmine.Matchers.prototype.toMatchOrBeNull = function(expected) { ^ ReferenceError: jasmine is not defined at Object.<anonymous> (C:\Users\xxxx\AppData\Roaming\npm\node_modules\frisby\lib\frisby.js:1125:1) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356