25 lines
903 B
JavaScript
25 lines
903 B
JavaScript
'use strict';
|
|
|
|
require('../common');
|
|
|
|
const assert = require('assert');
|
|
const versionParts = process.versions.node.split('.');
|
|
|
|
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.strictEqual(process.release.lts, 'Argon');
|
|
} else if (versionParts[0] === '6' && versionParts[1] >= 9) {
|
|
assert.strictEqual(process.release.lts, 'Boron');
|
|
} else if (versionParts[0] === '8' && versionParts[1] >= 9) {
|
|
assert.strictEqual(process.release.lts, 'Carbon');
|
|
} else if (versionParts[0] === '10' && versionParts[1] >= 13) {
|
|
assert.strictEqual(process.release.lts, 'Dubnium');
|
|
} else if (versionParts[0] === '12' && versionParts[1] >= 13) {
|
|
assert.strictEqual(process.release.lts, 'Erbium');
|
|
} else {
|
|
assert.strictEqual(process.release.lts, undefined);
|
|
}
|