-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issues with semver, added dedicated semver unit tests. Version …
…bump.
- Loading branch information
1 parent
f8255e9
commit 2a230ec
Showing
4 changed files
with
39 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import test from 'tappedout' | ||
import { Semver as sv } from '@ngnjs/plugin' | ||
|
||
const a = '2.0.0-alpha.3' | ||
const b = '2.0.0-alpha.5' | ||
|
||
test('Semver Checks', t => { | ||
t.expect(true, sv.eq(a, a), 'equal') | ||
t.expect(true, sv.lt(a, b), 'less than') | ||
t.expect(true, sv.gt(b, a), 'greater than') | ||
t.expect(true, sv.lte(a, b), 'less than or equal to (unequal)') | ||
t.expect(true, sv.gte(b, a), 'greater than or equal to (unequal)') | ||
t.expect(true, sv.lte(a, a), 'less than or equal to (equal)') | ||
t.expect(true, sv.gte(a, a), 'greater than or equal to (equal)') | ||
t.expect(b, sv.select('^2.0.0-alpha', b, a), 'Select latest version of the same minor version.') | ||
t.end() | ||
}) |
File renamed without changes.