mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
533 B
17 lines
533 B
10 years ago
|
'use strict';
|
||
|
require('../common');
|
||
|
const assert = require('assert');
|
||
|
const versionParts = process.versions.node.split('.');
|
||
|
|
||
|
assert.equal(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');
|
||
|
} else if (versionParts[0] === '6' && versionParts[1] >= 9) {
|
||
|
assert.equal(process.release.lts, 'Boron');
|
||
|
} else {
|
||
|
assert.strictEqual(process.release.lts, undefined);
|
||
|
}
|