Created
January 29, 2016 22:37
-
-
Save stackwalker/ffbfd208cfbcd7fba3b4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var chakram = require('chakram'), | |
expect = chakram.expect; | |
var authUrl = 'secret'; | |
var consumerUrl = 'secret'; | |
var consumerId = 'christest11'; | |
describe('Consumer', function(){ | |
it('should get a jwt and crud a consumer', function(){ | |
return chakram.post(authUrl, { | |
headers: { | |
'Authorization': 'Basic ' + 'secret' | |
}, | |
strictSSL: false, | |
json: true, | |
body: { | |
'grant_type': 'client_credentials', | |
'scope': '*' | |
} | |
}) | |
.then(function(response){ | |
console.log(response); | |
}) | |
}) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment