Use shared middleware to enforce master key on global config update API.

This commit is contained in:
Nikita Lutsenko
2016-03-01 20:30:29 -08:00
parent dacc22de42
commit 806800c6fb
2 changed files with 4 additions and 10 deletions

View File

@@ -53,8 +53,8 @@ describe('a GlobalConfig', () => {
'X-Parse-REST-API-Key': 'rest'
},
}, (error, response, body) => {
expect(response.statusCode).toEqual(401);
expect(body.error).toEqual('unauthorized');
expect(response.statusCode).toEqual(403);
expect(body.error).toEqual('unauthorized: master key is required');
done();
});
});