Suppress Test Logs (#6256)
* Suppress Test Logs This will reduce some of the noise in the tests logs. * replace deprecated buffer * remove deprecation warnings * fix geopoint * Fix GraphQL * postgres warnings
This commit is contained in:
@@ -27,7 +27,7 @@ describe('server', () => {
|
||||
});
|
||||
|
||||
it('show warning if any reserved characters in appId', done => {
|
||||
spyOn(console, 'warn').and.callThrough();
|
||||
spyOn(console, 'warn').and.callFake(() => {});
|
||||
reconfigureServer({ appId: 'test!-^' }).then(() => {
|
||||
expect(console.warn).toHaveBeenCalled();
|
||||
return done();
|
||||
@@ -40,7 +40,7 @@ describe('server', () => {
|
||||
url: 'http://localhost:8378/1/classes/TestObject',
|
||||
headers: {
|
||||
Authorization:
|
||||
'Basic ' + new Buffer('test:' + 'test').toString('base64'),
|
||||
'Basic ' + Buffer.from('test:' + 'test').toString('base64'),
|
||||
},
|
||||
}).then(response => {
|
||||
expect(response.status).toEqual(200);
|
||||
@@ -56,7 +56,7 @@ describe('server', () => {
|
||||
headers: {
|
||||
Authorization:
|
||||
'Basic ' +
|
||||
new Buffer('test:javascript-key=' + 'test').toString('base64'),
|
||||
Buffer.from('test:javascript-key=' + 'test').toString('base64'),
|
||||
},
|
||||
}).then(response => {
|
||||
expect(response.status).toEqual(200);
|
||||
|
||||
Reference in New Issue
Block a user