Skip to content

Commit

Permalink
fix: pubnub.yml validation issues (#39)
Browse files Browse the repository at this point in the history
* fix: pubnub.yml validation issues

* fix: race condition in subscribeSpec

* buiild: remove SourceClear

* build: update node

* build: update yarn.lock

* fix: update pubnub.yml date format
  • Loading branch information
Salet authored Mar 11, 2021
1 parent b704d40 commit 0edba81
Show file tree
Hide file tree
Showing 4 changed files with 4,810 additions and 2,399 deletions.
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

0 comments on commit 0edba81

Please sign in to comment.