Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "meta: switch v6.x to LTS (#973)"
For the release of v7.0 we should revert commit 8c53b4b This can be trumped by #990 if it is ready for release before v7 is cut
- Loading branch information
1 parent
0a5d542
commit 14805d5
Showing
5 changed files
with
67 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
'use strict' | ||
|
||
const test = require('tape') | ||
|
||
const latestversion = require('../../scripts/helpers/latestversion') | ||
|
||
test('latestversion.current()', (t) => { | ||
t.test('should be greater equal/greater than v5.0.0', (t) => { | ||
const currentVersion = latestversion.current([ | ||
{ version: 'v4.2.1', lts: true }, | ||
{ version: 'v0.12.7', lts: false } | ||
]) | ||
|
||
t.equal(currentVersion, undefined) | ||
t.end() | ||
}) | ||
|
||
t.test('should not be an LTS release', (t) => { | ||
const currentVersion = latestversion.current([ | ||
{ version: 'v5.0.0', lts: false }, | ||
{ version: 'v4.2.1', lts: true }, | ||
{ version: 'v0.12.7', lts: false } | ||
]) | ||
|
||
t.equal(currentVersion.node, 'v5.0.0') | ||
t.end() | ||
}) | ||
|
||
t.end() | ||
}) | ||
|
||
test('latestversion.lts()', (t) => { | ||
t.test('should be an LTS release', (t) => { | ||
const ltsVersion = latestversion.lts([ | ||
{ version: 'v4.2.1', lts: true }, | ||
{ version: 'v0.12.7', lts: false } | ||
]) | ||
|
||
t.equal(ltsVersion.node, 'v4.2.1') | ||
t.end() | ||
}) | ||
|
||
t.test('should pick latest LTS release', (t) => { | ||
const ltsVersion = latestversion.lts([ | ||
{ version: 'v5.0.0', lts: false }, | ||
{ version: 'v4.2.1', lts: true }, | ||
{ version: 'v4.2.0', lts: true }, | ||
{ version: 'v0.12.7', lts: false } | ||
]) | ||
|
||
t.equal(ltsVersion.node, 'v4.2.1') | ||
t.end() | ||
}) | ||
|
||
t.end() | ||
}) |