mirror of
https://github.com/lancedikson/bowser
synced 2026-03-02 03:40:27 +00:00
Replace the main bowser file
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import test from 'ava';
|
||||
import yaml from 'yamljs';
|
||||
import path from 'path';
|
||||
import Bowser from '../../src/new-bowser';
|
||||
import Bowser from '../../src/bowser';
|
||||
|
||||
const listOfUA = yaml.load(path.join(__dirname, 'useragentstrings.yml'));
|
||||
|
||||
for (const browserName in listOfUA) {
|
||||
listOfUA[browserName].forEach((browser) => {
|
||||
test('Check all the test browsers', t => {
|
||||
test('Check all the test browsers', (t) => {
|
||||
const parsed = new Bowser(browser.ua).parse().getResult();
|
||||
t.deepEqual(parsed, browser.spec, `${browser.ua}`);
|
||||
t.is(parsed.browser.name, browserName, `${browser.ua}`);
|
||||
|
||||
Reference in New Issue
Block a user