diff --git a/test/content/translaotr.js b/test/content/translaotr.js index 1baf6c257f..a02fea9977 100644 --- a/test/content/translaotr.js +++ b/test/content/translaotr.js @@ -1,3 +1,4 @@ +import {STRING_ERROR_MSG, STRING_DOES_NOT_EXIST_MSG} from '../helpers/content.helper'; import {translator} from '../../common/script/src/content/helpers'; describe('Translator', () => { diff --git a/test/helpers/content.helper.js b/test/helpers/content.helper.js index be44c7ba11..b065195b41 100644 --- a/test/helpers/content.helper.js +++ b/test/helpers/content.helper.js @@ -7,8 +7,8 @@ import i18n from '../../common/script/src/i18n'; require('coffee-script'); i18n.translations = require('../../website/src/i18n.js').translations; -global.STRING_ERROR_MSG = 'Error processing the string. Please see Help > Report a Bug.'; -global.STRING_DOES_NOT_EXIST_MSG = /^String '.*' not found.$/; +export const STRING_ERROR_MSG = 'Error processing the string. Please see Help > Report a Bug.'; +export const STRING_DOES_NOT_EXIST_MSG = /^String '.*' not found.$/; global.expectValidTranslationString = (attribute) => { expect(attribute).to.be.a('function');