Skip to content

Commit 6b0d0c1

Browse files
chore: new owl bot post processor docker image (#592)
gcr.io/repo-automation-bots/owlbot-nodejs:latest@sha256:f93bb861d6f12574437bb9aee426b71eafd63b419669ff0ed029f4b7e7162e3f
1 parent cacd19a commit 6b0d0c1

2 files changed

Lines changed: 15 additions & 10 deletions

File tree

handwritten/nodejs-logging-winston/system-test/logging-winston.ts

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,11 @@ describe('LoggingWinston', function () {
9696
level: 'error',
9797
verify: (entry: Entry) => {
9898
assert(
99-
(entry.data as {
100-
message: string;
101-
}).message.startsWith('fourth Error:')
99+
(
100+
entry.data as {
101+
message: string;
102+
}
103+
).message.startsWith('fourth Error:')
102104
);
103105
},
104106
},
@@ -113,9 +115,11 @@ describe('LoggingWinston', function () {
113115
level: 'log',
114116
verify: (entry: Entry) => {
115117
assert(
116-
(entry.data as {
117-
message: string;
118-
}).message.startsWith('fifth message')
118+
(
119+
entry.data as {
120+
message: string;
121+
}
122+
).message.startsWith('fifth message')
119123
);
120124
},
121125
},
@@ -143,7 +147,7 @@ describe('LoggingWinston', function () {
143147
assert.strictEqual(entries.length, testData.length);
144148
entries.reverse().forEach((entry, index) => {
145149
const test = testData[index];
146-
test.verify((entry as {}) as Entry);
150+
test.verify(entry as {} as Entry);
147151
});
148152
});
149153

@@ -180,8 +184,9 @@ describe('LoggingWinston', function () {
180184
it('reports errors', async () => {
181185
const start = Date.now();
182186
const service = `logging-winston-system-test-winston3-${UUID}`;
183-
const LoggingWinston = proxyquire('../src/index', {winston})
184-
.LoggingWinston;
187+
const LoggingWinston = proxyquire('../src/index', {
188+
winston,
189+
}).LoggingWinston;
185190

186191
const logger = winston.createLogger({
187192
transports: [

handwritten/nodejs-logging-winston/test/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ describe('logging-common', () => {
7474
};
7575

7676
beforeEach(() => {
77-
fakeLogInstance = ({} as unknown) as Logging;
77+
fakeLogInstance = {} as unknown as Logging;
7878
fakeLoggingOptions_ = null;
7979
fakeLogName_ = null;
8080
loggingCommon = new loggingCommonLib.LoggingCommon(OPTIONS);

0 commit comments

Comments
 (0)