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 5b71441 commit ca70ad0Copy full SHA for ca70ad0
spec/Middlewares.spec.js
@@ -79,6 +79,19 @@ describe('middlewares', () => {
79
});
80
81
82
+ it('should succeed when client key supplied but empty', (done) => {
83
+ AppCache.put(fakeReq.body._ApplicationId, {
84
+ clientKey: '',
85
+ masterKey: 'masterKey',
86
+ restAPIKey: 'restAPIKey'
87
+ });
88
+ fakeReq.headers['x-parse-client-key'] = '';
89
+ middlewares.handleParseHeaders(fakeReq, fakeRes, () => {
90
+ expect(fakeRes.status).not.toHaveBeenCalled();
91
+ done();
92
93
94
+
95
it('should succeed when no keys are configured and none supplied', (done) => {
96
AppCache.put(fakeReq.body._ApplicationId, {
97
masterKey: 'masterKey'
0 commit comments