Skip to content

Commit

Permalink
add test assertion for attachment serialization when using proto message
Browse files Browse the repository at this point in the history
  • Loading branch information
tunderdomb committed Aug 1, 2022
1 parent 0013ae7 commit 827ac0d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/ProtoQueueMessage.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ describe('ProtoQueueMessage', () => {

assert.strictEqual(newQueueMessage.timeOut, null, 'timeout does not match')

assert.strictEqual(newQueueMessage.attachments.size, 0, 'attachment count does not match')

newQueueMessage.getAttachments().forEach((value, key) => {
assert.strictEqual(value.toString(), queueMessage.getAttachments().get(key).toString(), 'attachment not match')
})
Expand Down

0 comments on commit 827ac0d

Please sign in to comment.