1
0
mirror of https://github.com/lancedikson/bowser synced 2024-10-27 20:34:22 +00:00

switching from default export to named export

This commit is contained in:
Marco Starker 2019-04-18 16:09:16 +02:00
parent 7075f6c4d7
commit 98f348ebd3
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
// NOTE: this list must be up-to-date with browsers listed in
// test/acceptance/useragentstrings.yml
export default {
export const BROWSER_ALIASES_MAP = {
'Amazon Silk': 'amazon_silk',
'Android Browser': 'android',
Bada: 'bada',

View File

@ -1,4 +1,4 @@
import BROWSER_ALIASES_MAP from './constants.js';
import {BROWSER_ALIASES_MAP} from './constants.js';
export default class Utils {
/**

View File

@ -1,5 +1,5 @@
import test from 'ava';
import BROWSER_ALIASES_MAP from '../../src/constants';
import {BROWSER_ALIASES_MAP} from '../../src/constants';
test('check duplicate aliases', (t) => {
const aliasesList = Object.keys(BROWSER_ALIASES_MAP).map(value => (BROWSER_ALIASES_MAP[value]));