Merge branch 'hotfix/2.0.0-beta.3'

pull/258/head 2.0.0-beta.3
Denis Demchenko 6 years ago
commit 6bde5e128f

@ -4,4 +4,5 @@ node_js:
- "8.4.0"
script:
- npm run lint
- npm build
- npm test

@ -1,5 +1,10 @@
# Bowser Changelog
### 2.0.0-beta.3 (September 15, 2018)
- [FIX] Fix Chrome Mobile detection (#253)
- [FIX] Use built bowser for CI (#252)
- [FIX] Update babel-plugin-add-module-exports (#251)
### 2.0.0-beta.2 (September 9, 2018)
- [FIX] Fix failing comparing version through `Parser.satisfies` (#243)
- [FIX] Fix travis testing, include eslint into CI testing

993
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -1,6 +1,6 @@
{
"name": "bowser",
"version": "2.0.0-beta.2",
"version": "2.0.0-beta.3",
"description": "Lightweight browser detector",
"keywords": [
"browser",

@ -2,6 +2,7 @@ import test from 'ava';
import yaml from 'yamljs';
import path from 'path';
import Bowser from '../../src/bowser';
import BowserBuild from '../../es5';
const listOfUA = yaml.load(path.join(__dirname, 'useragentstrings.yml'));
@ -11,7 +12,9 @@ browserNames.forEach((browserName) => {
listOfUA[browserName].forEach((browser) => {
test('Check all the test browsers', (t) => {
const parsed = Bowser.parse(browser.ua);
const parsedBuild = BowserBuild.parse(browser.ua);
t.deepEqual(parsed, browser.spec, `${browser.ua}`);
t.deepEqual(parsedBuild, browser.spec, `${browser.ua}`);
t.is(parsed.browser.name, browserName, `${browser.ua}`);
});
});

Loading…
Cancel
Save