Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit c0c2b3c

Browse files
committed
fix: let strings be strings
1 parent aec518b commit c0c2b3c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pubsub.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ module.exports = (common) => {
286286
expect(subscription).to.exist
287287

288288
subscription.on('data', (msg) => {
289-
expect(msg.data).to.equal(expectedString)
289+
expect(msg.data.toString()).to.equal(expectedString)
290290
subscription.cancel(() => subscription2.cancel(done))
291291
})
292292

@@ -317,7 +317,7 @@ module.exports = (common) => {
317317

318318
if (receivedMessages.length === expectedMessages) {
319319
receivedMessages.forEach((msg) => {
320-
expect(msg).to.be.equal('hi')
320+
expect(msg.toString()).to.be.equal('hi')
321321
})
322322
subscription.cancel(() => subscription2.cancel(done))
323323
}
@@ -357,7 +357,7 @@ module.exports = (common) => {
357357
}
358358

359359
subscription.on('data', (d) => {
360-
expect(d.data).to.equal(expectedString)
360+
expect(d.data.toString()).to.equal(expectedString)
361361
receivedCount++
362362
outputProgress()
363363
if (receivedCount >= count) {

0 commit comments

Comments
 (0)