Added warning for special URL sensitive characters for appId (#6159)

* Added warning for special url sensitive characters for appId

* refactored and added test case
This commit is contained in:
Saimoom Safayet Akash
2019-10-27 05:12:42 +06:00
committed by Diamond Lewis
parent f50f8beb62
commit cf9245a4a2
2 changed files with 18 additions and 0 deletions

View File

@@ -26,6 +26,14 @@ describe('server', () => {
});
});
it('show warning if any reserved characters in appId', done => {
spyOn(console, 'warn').and.callThrough();
reconfigureServer({ appId: 'test!-^' }).then(() => {
expect(console.warn).toHaveBeenCalled();
return done();
});
});
it('support http basic authentication with masterkey', done => {
reconfigureServer({ appId: 'test' }).then(() => {
request({