From c0cfe887a94fdb1700294e2bc42145197836aa58 Mon Sep 17 00:00:00 2001 From: Denis Demchenko Date: Sat, 15 Sep 2018 14:31:39 +0300 Subject: [PATCH] Use built for CI closes #252 --- .travis.yml | 1 + test/acceptance/test-list-of-ua.js | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index 0a6f27b..c8d60f2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,4 +4,5 @@ node_js: - "8.4.0" script: - npm run lint +- npm build - npm test diff --git a/test/acceptance/test-list-of-ua.js b/test/acceptance/test-list-of-ua.js index e050b65..996651b 100644 --- a/test/acceptance/test-list-of-ua.js +++ b/test/acceptance/test-list-of-ua.js @@ -2,6 +2,7 @@ import test from 'ava'; import yaml from 'yamljs'; import path from 'path'; import Bowser from '../../src/bowser'; +import BowserBuild from '../../es5'; const listOfUA = yaml.load(path.join(__dirname, 'useragentstrings.yml')); @@ -11,7 +12,9 @@ browserNames.forEach((browserName) => { listOfUA[browserName].forEach((browser) => { test('Check all the test browsers', (t) => { const parsed = Bowser.parse(browser.ua); + const parsedBuild = BowserBuild.parse(browser.ua); t.deepEqual(parsed, browser.spec, `${browser.ua}`); + t.deepEqual(parsedBuild, browser.spec, `${browser.ua}`); t.is(parsed.browser.name, browserName, `${browser.ua}`); }); });