@ulixee/commons
Advanced tools
Comparing version 2.0.0-alpha.1 to 2.0.0-alpha.2
{ | ||
"name": "@ulixee/commons", | ||
"version": "2.0.0-alpha.1", | ||
"version": "2.0.0-alpha.2", | ||
"description": "Common utilities for Ulixee", | ||
@@ -27,3 +27,4 @@ "repository": "git@github.com:ulixee/ulixee.git", | ||
"source-map-js": "^1.0.1" | ||
} | ||
} | ||
}, | ||
"gitHead": "8ad20d4f123f73183f454b6fc3cbc33395d2bf5f" | ||
} |
@@ -5,2 +5,3 @@ "use strict"; | ||
const utils_1 = require("../lib/utils"); | ||
const VersionUtils_1 = require("../lib/VersionUtils"); | ||
const { escapeUnescapedChar } = Utils; | ||
@@ -43,2 +44,9 @@ test('should escape unescaped regex chars', () => { | ||
}); | ||
test('can check Prerelease Semvers', () => { | ||
expect((0, VersionUtils_1.isSemverSatisfied)('2.0.0-alpha.1', '2.0.0-alpha.1')).toBeTruthy(); | ||
expect((0, VersionUtils_1.isSemverSatisfied)('2.0.0-alpha.1', '2.0.0-alpha.2')).toBeTruthy(); | ||
}); | ||
test('can handle v in front of versions', () => { | ||
expect((0, VersionUtils_1.isSemverSatisfied)('v2.0.0-alpha.1', '2.0.0-alpha.1')).toBeTruthy(); | ||
}); | ||
//# sourceMappingURL=utils.test.js.map |
Sorry, the diff of this file is not supported yet
192505
2775