Fix integration tests

Provided more details for the testing thing
pull/227/head
Denis Demchenko 7 years ago
parent 058d5e0774
commit d3fec85440

@ -5,12 +5,12 @@ import Bowser from '../../src/new-bowser';
const listOfUA = yaml.load(path.join(__dirname, 'useragentstrings.yml'));
test('Check all the test browsers', t => {
for (const browserName in listOfUA) {
listOfUA[browserName].forEach((browser) => {
for (const browserName in listOfUA) {
listOfUA[browserName].forEach((browser) => {
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}`);
});
}
});
});
}

Loading…
Cancel
Save