This repository has been archived by the owner on Dec 15, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bd850b1
commit f8e16ae
Showing
3 changed files
with
4,550 additions
and
912 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
const test = require('ava') | ||
|
||
const electBuildLeader = require('../elect-build-leader') | ||
|
||
test('find highest node version in build matrix', t => { | ||
t.is(electBuildLeader('1'), 1, 'no matrix') | ||
|
||
t.is(electBuildLeader([ | ||
'8', | ||
'4', | ||
'1', | ||
'node', | ||
'0.1', | ||
'lts', | ||
'argon', | ||
'0.10', | ||
'8.4', | ||
'4.0.1' | ||
]), 4, 'latest stable') | ||
|
||
t.is(electBuildLeader([ | ||
'8', | ||
'4', | ||
'1', | ||
'>=3', | ||
'0.1', | ||
'lts', | ||
'argon', | ||
'0.10', | ||
'8.4', | ||
'4.0.1' | ||
]), 9, 'version range') | ||
}) |
Oops, something went wrong.