Skip to content

Commit d4ce9fc

Browse files
style
1 parent 45d234b commit d4ce9fc

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/logging-winston/system-test/logging-winston.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,16 @@ var winston = require('winston');
2424
var env = require('../../../system-test/env.js');
2525

2626
var logging = require('@google-cloud/logging')(env);
27-
var loggingWinston = require('../');
27+
var LoggingWinston = require('../');
2828

2929
describe('LoggingWinston', function() {
3030
var WRITE_CONSISTENCY_DELAY_MS = 20000;
3131

32-
var logger = new (winston.Logger)({transports: [new loggingWinston(env)]});
32+
var logger = new winston.Logger({
33+
transports: [
34+
new LoggingWinston(env)
35+
]
36+
});
3337

3438
describe('log', function() {
3539
var testTimestamp = new Date();

0 commit comments

Comments
 (0)