We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ff9017 commit e096569Copy full SHA for e096569
test/authorise.js
@@ -137,6 +137,17 @@ describe('Authorise', function() {
137
.expect(400, /only one method may be used/i, done);
138
});
139
140
+ it('should allow exactly one method (post: query + empty body)', function (done) {
141
+ var app = bootstrap('mockValid');
142
+
143
+ request(app)
144
+ .post('/?access_token=thom')
145
+ .send({
146
+ access_token: ''
147
+ })
148
+ .expect(400, /only one method may be used/i, done);
149
+ });
150
151
it('should detect expired token', function (done){
152
var app = bootstrap({
153
model: {
0 commit comments