Skip to content

Commit 9859339

Browse files
authored
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
1 parent 188f033 commit 9859339

15 files changed

+869
-671
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ branches:
1818
cache:
1919
directories:
2020
- "$HOME/.npm"
21+
- ".eslintcache"
2122
stage: test
2223
env:
2324
global:

spec/AdapterLoader.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ describe('AdapterLoader', () => {
145145
});
146146

147147
it('should load S3Adapter from direct passing', done => {
148+
spyOn(console, 'warn').and.callFake(() => {});
148149
const s3Adapter = new S3Adapter('key', 'secret', 'bucket');
149150
expect(() => {
150151
const adapter = loadAdapter(s3Adapter, FilesAdapter);

spec/CLI.spec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ describe('commander additions', () => {
106106
});
107107

108108
it('should not override config.json', done => {
109+
spyOn(console, 'log').and.callFake(() => {});
109110
commander.loadDefinitions(testDefinitions);
110111
commander.parse(
111112
[
@@ -160,6 +161,7 @@ describe('commander additions', () => {
160161
});
161162

162163
it('should load config from apps', done => {
164+
spyOn(console, 'log').and.callFake(() => {});
163165
commander.loadDefinitions(testDefinitions);
164166
commander.parse([
165167
'node',

spec/EmailVerificationToken.spec.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ describe('Email Verification Token Expiration: ', () => {
3131
// wait for 1 second - simulate user behavior to some extent
3232
setTimeout(() => {
3333
expect(sendEmailOptions).not.toBeUndefined();
34-
console.log(sendEmailOptions.link);
3534

3635
request({
3736
url: sendEmailOptions.link,

spec/MockLdapServer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function newServer(port, dn, provokeSearchError = false) {
1313
server.search('o=example', function(req, res, next) {
1414
if (provokeSearchError) {
1515
res.end(ldapjs.LDAP_SIZE_LIMIT_EXCEEDED);
16-
return next(new ldapjs.NoSuchObjectError('fake error'));
16+
return next();
1717
}
1818
const obj = {
1919
dn: req.dn.toString(),

0 commit comments

Comments
 (0)