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:
@@ -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}`);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user