Skip to content

Commit 4b05bcc

Browse files
committed
Test fix
1 parent d057fd4 commit 4b05bcc

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

packages/kafka/test/publisher/PermissionPublisher.spec.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,19 @@ describe('PermissionPublisher - init', () => {
228228
// When&Then - invalid
229229
await expect(
230230
publisher.publish(PERMISSION_GENERAL_TOPIC, messageInvalid),
231-
).rejects.toThrowErrorMatchingInlineSnapshot('[Error: Unsupported message type: removed]')
231+
).rejects.toThrowErrorMatchingInlineSnapshot(`
232+
[InternalError: Error while publishing to Kafka: [
233+
{
234+
"received": "removed",
235+
"code": "invalid_literal",
236+
"expected": "added",
237+
"path": [
238+
"type"
239+
],
240+
"message": "Invalid literal value, expected \\"added\\""
241+
}
242+
]]
243+
`)
232244
})
233245
})
234246
})

0 commit comments

Comments
 (0)