Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe('HTTP Method Test for app.js', function() {
- var frisby = require('frisby');
- frisby.post('http://localhost:8000/abc/getme/login', {
- username:"myusername",
- password:"mypassword"
- }, {json: true})
- frisby.addHeaders({
- 'Content-type':'application/json'
- })
- frisby.expectHeaderContains('content-type', 'application/json')
- frisby.expectJSON({
- method: 'POST'
- }).toss();
- });
- Failures:
- 1) HTTP Method Test for app.js encountered a declaration exception
- Message:
- TypeError: frisby.addHeaders is not a function
- Stacktrace:
- TypeError: frisby.addHeaders is not a function
- at jasmine.Suite.<anonymous> (/home/srikanth/Desktop/qcs/QCS/server/spec/app_spec.js:8:20)
- at Object.<anonymous> (/home/srikanth/Desktop/qcs/QCS/server/spec/app_spec.js:2:5)
- at Module._compile (module.js:660:30)
- at Object.Module._extensions..js (module.js:671:10)
- at Module.load (module.js:573:32)
- at tryModuleLoad (module.js:513:12)
- at Function.Module._load (module.js:505:3)
Add Comment
Please, Sign In to add comment