1
0
mirror of https://github.com/lancedikson/bowser synced 2026-03-02 03:40:27 +00:00

Fix tests after changes

This commit is contained in:
Denis Demchenko
2018-07-05 22:58:14 +03:00
parent 1f572ed8f4
commit c79b71736e
4 changed files with 5 additions and 4 deletions

View File

@@ -40,7 +40,7 @@ class Bowser {
* @return {ParsedResult}
*/
static parse(UA) {
return (new Bowser(UA)).getResult();
return (new Parser(UA)).getResult();
}
}

View File

@@ -78,6 +78,7 @@ class Utils {
* @return {Number} comparison result: -1 when versionA is lower,
* 1 when versionA is bigger, 0 when both equal
*/
/* eslint consistent-return: 1 */
static compareVersions(versionA, versionB) {
// 1) get common precision for both versions, for example for "10.0" and "9" it should be 2
let precision = Math.max(