fix unit tests

This commit is contained in:
Matteo Pagliazzi
2019-10-03 17:24:17 +02:00
parent 3a6a4092f9
commit d19b3857ee
21 changed files with 39 additions and 30 deletions

View File

@@ -8,7 +8,7 @@ import {
omit,
toArray,
} from 'lodash';
import { content as Content } from '../../common';
import common from '../../common';
import logger from './logger';
const AMPLITUDE_TOKEN = nconf.get('AMPLITUDE_KEY');
@@ -28,6 +28,8 @@ if (AMPLITUDE_TOKEN) amplitude = new Amplitude(AMPLITUDE_TOKEN);
let ga = googleAnalytics(GA_TOKEN);
const Content = common.content;
function _lookUpItemName (itemKey) {
if (!itemKey) return;