switching from default export to named export

pull/318/head
Marco Starker 5 years ago
parent 7075f6c4d7
commit 98f348ebd3

@ -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',

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

@ -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]));

Loading…
Cancel
Save