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

Eslint fixes

This commit is contained in:
Denis Demchenko
2018-06-27 23:09:45 +03:00
parent 6aedccecd4
commit f202c1cd30
6 changed files with 18 additions and 22 deletions

View File

@@ -5,7 +5,9 @@ import Bowser from '../../src/bowser';
const listOfUA = yaml.load(path.join(__dirname, 'useragentstrings.yml'));
for (const browserName in listOfUA) {
const browserNames = Object.keys(listOfUA);
browserNames.forEach((browserName) => {
listOfUA[browserName].forEach((browser) => {
test('Check all the test browsers', (t) => {
const parsed = new Bowser(browser.ua).parse().getResult();
@@ -13,4 +15,4 @@ for (const browserName in listOfUA) {
t.is(parsed.browser.name, browserName, `${browser.ua}`);
});
});
}
});