Skip to content

Commit eb6e01a

Browse files
Assert the public subscription projection on stdout
1 parent 4022db3 commit eb6e01a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎packages/app/src/cli/services/subscription-migrations/list-output.test.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,9 @@ describe('outputMigrationList stream boundary', () => {
351351
await outputMigrationList({pages: pages(), json: true})
352352

353353
expect(stdout).toHaveBeenCalledOnce()
354-
expect(stdout.mock.calls[0]?.[0]).toBe(`${JSON.stringify({subscriptions: [value]}, null, 2)}\n`)
354+
expect(stdout.mock.calls[0]?.[0]).toBe(
355+
`${JSON.stringify({subscriptions: [projectMigratableSubscription(value)]}, null, 2)}\n`,
356+
)
355357
expect(stderr).not.toHaveBeenCalled()
356358
} finally {
357359
stdout.mockRestore()

0 commit comments

Comments
 (0)