mirror of
https://github.com/lancedikson/bowser
synced 2026-03-02 03:40:27 +00:00
Upgrade ava to 1.1.0 and fix tests
This commit is contained in:
@@ -9,8 +9,8 @@ const listOfUA = yaml.load(path.join(__dirname, 'useragentstrings.yml'));
|
||||
const browserNames = Object.keys(listOfUA);
|
||||
|
||||
browserNames.forEach((browserName) => {
|
||||
listOfUA[browserName].forEach((browser) => {
|
||||
test('Check all the test browsers', (t) => {
|
||||
listOfUA[browserName].forEach((browser, index) => {
|
||||
test(`Test ${browserName} ${index}`, (t) => {
|
||||
const parsed = Bowser.parse(browser.ua);
|
||||
const parsedBuild = BowserBuild.parse(browser.ua);
|
||||
t.deepEqual(parsed, browser.spec, `${browser.ua}`);
|
||||
|
||||
Reference in New Issue
Block a user