Skip to content

Commit

Permalink
chore: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
efloden committed Jul 19, 2018
1 parent 8b9d98e commit 276cbb8
Showing 1 changed file with 12 additions and 0 deletions.
Expand Up @@ -68,6 +68,11 @@ const phrase = {
sources: ['source text']
}

const locale = {
name: 'French',
id: 'fr'
}

/* global describe expect it */
describe('TransUnitTranslationPanel', () => {
it('renders Syntax Highlighting markup on selected && syntax enabled', () => {
Expand All @@ -85,6 +90,7 @@ describe('TransUnitTranslationPanel', () => {
selectPhrasePluralIndex={defaultFunc}
setTextArea={defaultFunc}
textChanged={defaultFunc}
translationLocale={locale}
translation={'Je ne parle pas français'}
validationOptions={validations}
directionClass={''}
Expand All @@ -104,13 +110,15 @@ describe('TransUnitTranslationPanel', () => {
className={' TransUnit-text'}
disabled={false}
rows={1}
lang='fr'
value={'Je ne parle pas français'}
placeholder="Enter a translation…"
onFocus={defaultFunc}
onChange={defaultFunc}
onSelect={defaultFunc} />
<SyntaxHighlighter
language='html'
lang='fr'
style={atelierLakesideLight}
wrapLines
lineStyle={lineStyle}>
Expand All @@ -137,6 +145,7 @@ describe('TransUnitTranslationPanel', () => {
selectPhrasePluralIndex={defaultFunc}
setTextArea={defaultFunc}
textChanged={defaultFunc}
translationLocale={locale}
translation={'Je ne parle pas français'}
validationOptions={validations}
directionClass={''}
Expand All @@ -150,6 +159,7 @@ describe('TransUnitTranslationPanel', () => {
className={' TransUnit-text'}
disabled={false}
rows={1}
lang='fr'
value={'Je ne parle pas français'}
placeholder="Enter a translation…"
onFocus={defaultFunc}
Expand All @@ -174,6 +184,7 @@ describe('TransUnitTranslationPanel', () => {
selectPhrasePluralIndex={defaultFunc}
setTextArea={defaultFunc}
textChanged={defaultFunc}
translationLocale={locale}
translation={'Je ne parle pas français'}
validationOptions={validations}
directionClass={''}
Expand All @@ -187,6 +198,7 @@ describe('TransUnitTranslationPanel', () => {
className={' TransUnit-text'}
disabled={false}
rows={1}
lang='fr'
value={'Je ne parle pas français'}
placeholder="Enter a translation…"
onFocus={defaultFunc}
Expand Down

0 comments on commit 276cbb8

Please sign in to comment.