Add failing test

This commit is contained in:
corpglory-dev 2019-02-06 18:33:24 +03:00
parent eb879062f9
commit 43b5eba8ee

View File

@ -44,6 +44,7 @@ describe('SemVersion', () => {
{ values: ['3.1.1-beta1', '3.1'], expected: true },
{ values: ['3.4.5', '4'], expected: false },
{ values: ['3.4.5', '3.5'], expected: false },
{ values: ['6.0.0', '5.2.0'], expected: true },
];
cases.forEach(testCase => {
expect(isVersionGtOrEq(testCase.values[0], testCase.values[1])).toBe(testCase.expected);