Fix tests

pull/232/head
Chocobozzz 2018-01-19 14:47:03 +01:00
parent 23e27dd535
commit 2af4fa4d8b
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 3 additions and 1 deletions

View File

@ -24,8 +24,9 @@ function keysExcluder (key, value) {
const loggerFormat = winston.format.printf((info) => {
let additionalInfos = JSON.stringify(info, keysExcluder, 2)
if (additionalInfos === '{}') additionalInfos = ''
else additionalInfos = ' ' + additionalInfos
return `[${info.label}] ${info.timestamp} ${info.level}: ${info.message} ${additionalInfos}`
return `[${info.label}] ${info.timestamp} ${info.level}: ${info.message}${additionalInfos}`
})
const timestampFormatter = winston.format.timestamp({

View File

@ -1,6 +1,7 @@
import * as express from 'express'
import * as OAuthServer from 'express-oauth-server'
import 'express-validator'
import { logger } from '../helpers/logger'
import { OAUTH_LIFETIME } from '../initializers'
const oAuthServer = new OAuthServer({