Skip to content

Commit

Permalink
test: update process-release for Node 8 Carbon
Browse files Browse the repository at this point in the history
PR-URL: #16656
Reviewed-By: Myles Borins <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Anatoli Papirovski <[email protected]>
  • Loading branch information
Fishrock123 committed Nov 2, 2017
1 parent bf26b96 commit dfac6cc
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions test/parallel/test-process-release.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
'use strict';

require('../common');

const assert = require('assert');
const versionParts = process.versions.node.split('.');

assert.equal(process.release.name, 'node');
assert.strictEqual(process.release.name, 'node');

// it's expected that future LTS release lines will have additional
// branches in here
if (versionParts[0] === '4' && versionParts[1] >= 2) {
assert.equal(process.release.lts, 'Argon');
assert.strictEqual(process.release.lts, 'Argon');
} else if (versionParts[0] === '6' && versionParts[1] >= 9) {
assert.equal(process.release.lts, 'Boron');
assert.strictEqual(process.release.lts, 'Boron');
} else if (versionParts[0] === '8' && versionParts[1] >= 9) {
assert.strictEqual(process.release.lts, 'Carbon');
} else {
assert.strictEqual(process.release.lts, undefined);
}

0 comments on commit dfac6cc

Please sign in to comment.