Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Fix semver usage #189

Merged
merged 2 commits into from Mar 12, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/test.exports.js
Expand Up @@ -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.0')) {
constants.concat([
'XPUB',
'XSUB',
Expand All @@ -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.0')) {
constants.concat([
'LAST_ENDPOINT'
]);
Expand Down