Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix semver usage in tests

  • Loading branch information...
commit 5c1698a1781d0e2649a82132d87e66fc4e702639 1 parent 7dabf27
@AlexeyKupershtokh AlexeyKupershtokh authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/test.exports.js
View
6 test/test.exports.js
@@ -53,8 +53,8 @@ if (semver.satisfies(zmq.version, '2.x')) {
]);
}
-// 3.x only.
-if (semver.satisfies(zmq.version, '3.x')) {
+// 3.0 and above.
+if (semver.gte(zmq.version, '3.0')) {
constants.concat([
'XPUB',
'XSUB',
@@ -64,7 +64,7 @@ if (semver.satisfies(zmq.version, '3.x')) {
}
// 3.2 and above.
-if (semver.gte('3.2')) {
+if (semver.gte(zmq.version, '3.2')) {
constants.concat([
'LAST_ENDPOINT'
]);
Please sign in to comment.
Something went wrong with that request. Please try again.