mirror of https://github.com/lukechilds/node.git
Browse Source
Reviewed-By: James M Snell <jasnell@gmail.com> PR-URL: https://github.com/nodejs/node/pull/3212v4.x
committed by
James M Snell
4 changed files with 27 additions and 0 deletions
@ -0,0 +1,14 @@ |
|||||
|
'use strict'; |
||||
|
const common = 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 { |
||||
|
assert.strictEqual(process.release.lts, undefined); |
||||
|
} |
Loading…
Reference in new issue