test(i18n): correctly disable during translation collection

This commit is contained in:
Nico Rehwaldt 2020-12-21 09:50:49 +01:00 committed by Nico Rehwaldt
parent fa0d4957f3
commit 5051420323
1 changed files with 3 additions and 4 deletions

View File

@ -1,11 +1,9 @@
import { import {
bootstrapModeler, bootstrapModeler,
collectTranslations,
inject inject
} from 'test/TestHelper'; } from 'test/TestHelper';
// skipping this file during translation extraction
var skip = window.__env__ && window.__env__.TRANSLATIONS === 'enabled';
import coreModule from 'lib/core'; import coreModule from 'lib/core';
import translateModule from 'diagram-js/lib/i18n/translate'; import translateModule from 'diagram-js/lib/i18n/translate';
import customTranslateModule from './custom-translate'; import customTranslateModule from './custom-translate';
@ -16,8 +14,9 @@ import contextPadModule from 'lib/features/context-pad';
var diagramXML = require('test/fixtures/bpmn/simple.bpmn'); var diagramXML = require('test/fixtures/bpmn/simple.bpmn');
skip ? describe.only : describe('i18n - translate', function() { // skipping this file during translation extraction
collectTranslations ? describe.skip : describe('i18n - translate', function() {
beforeEach(bootstrapModeler(diagramXML, { beforeEach(bootstrapModeler(diagramXML, {
modules: [ modules: [