Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .pubnub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ changelog:
changes:
- type: bug
text: add functions to (fetchMessages and deleteMessages) to declaration files for TS
date: Aug 6, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please note that there is a date format check now. This is not valid anymore, the format it accepts will be 2018-08-06

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right. It's now switched to the format you mentioned

- version: v1.3.0
changes:
- type: feature
Expand Down
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
language: node_js
sudo: false
node_js:
- '6'
- '10'
env:
- CXX=g++-4.8
addons:
srcclr: true
apt:
sources:
- ubuntu-toolchain-r-test
Expand Down
16 changes: 9 additions & 7 deletions test/e2e/subscribeSpec.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,19 @@ describe('#subscribe()', function () {
pubnub.getInstance('another2').init(config.demo);

listener = {
message: function (m) {
expect(m.message).to.be.equal(stringMessage);
done();
}
};
message: function (m) {
expect(m.message).to.be.equal(stringMessage);
done();
},
status: function (st) {
expect(st.category).to.be.equal("PNConnectedCategory");
pubnub.getInstance('another2').publish({channel: channelName, message: stringMessage});
},
};

pubnub.getInstance('another2').addListener(listener);

pubnub.getInstance('another2').subscribe({channels: [channelName]});

pubnub.getInstance('another2').publish({channel: channelName, message: stringMessage});
});
});

Expand Down