Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
5 changes: 3 additions & 2 deletions .pubnub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@ changelog:
changes:
- type: improvement
text: update dependencies
date: Dec 21, 2018
date: 2018-12-21
- version: v1.3.1
changes:
- type: bug
text: add functions to (fetchMessages and deleteMessages) to declaration files for TS
date: 2018-08-06
- version: v1.3.0
changes:
- type: feature
text: add functions to (fetchMessages and deleteMessages) and keep the stack of messages with only the latest 100
date: Nov 28, 2017
date: 2017-11-28
- version: v1.2.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
Loading