Skip to content

Commit d1946f0

Browse files
committed
test(optimize): drop stale newline from expected logger.info call
handle-optimize.mts:80 calls logger.info('Optimizing packages for ${agent} v${agentVersion}.') with no trailing newline. The test was asserting the same string plus '\n'. Mock receives exactly what the source passes; drop the '\n'. Surfaced by the post-rename test sweep — unrelated to the rename work itself.
1 parent daa3e88 commit d1946f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/cli/test/unit/commands/optimize/handle-optimize.test.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ describe('handleOptimize', () => {
276276
})
277277

278278
expect(mockLogger.info).toHaveBeenCalledWith(
279-
'Optimizing packages for pnpm v8.0.0.\n',
279+
'Optimizing packages for pnpm v8.0.0.',
280280
)
281281
expect(applyOptimization).toHaveBeenCalledWith(
282282
expect.objectContaining({ agent: 'pnpm' }),

0 commit comments

Comments
 (0)