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

Fix tests after changes

This commit is contained in:
Denis Demchenko
2018-07-05 22:58:14 +03:00
parent 1f572ed8f4
commit c79b71736e
4 changed files with 5 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ 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();
const parsed = Bowser.parse(browser.ua);
t.deepEqual(parsed, browser.spec, `${browser.ua}`);
t.is(parsed.browser.name, browserName, `${browser.ua}`);
});