Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Commit

Permalink
test(pubsub): include line breaks in topic/data
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed Oct 22, 2021
1 parent ab7eb97 commit e51e54d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/pubsub.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ describe('pubsub', function () {
})

it('should exchange non ascii data', function () {
const data = uint8ArrayFromString('你好世界')
const topic = 'pubsub-non-ascii'
const data = uint8ArrayFromString('你好世界\nzażółć\r\ngęślą\njaźń')
const topic = 'pubsub\nśnon\r\nascii'

const subscriber = () => new Promise((resolve) => {
daemon2.api.pubsub.subscribe(topic, (msg) => {
Expand All @@ -126,7 +126,7 @@ describe('pubsub', function () {

it('should exchange binary data', function () {
const data = uint8ArrayFromString('a36161636179656162830103056164a16466666666f400010203040506070809', 'base16')
const topic = 'pubsub-binary'
const topic = 'pubsub\nbinary\n'

const subscriber = () => new Promise((resolve) => {
daemon2.api.pubsub.subscribe(topic, (msg) => {
Expand Down

0 comments on commit e51e54d

Please sign in to comment.