mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-01-23 23:38:59 +00:00
test(i18n): correctly disable during translation collection
This commit is contained in:
parent
fa0d4957f3
commit
5051420323
@ -1,11 +1,9 @@
|
||||
import {
|
||||
bootstrapModeler,
|
||||
collectTranslations,
|
||||
inject
|
||||
} from 'test/TestHelper';
|
||||
|
||||
// skipping this file during translation extraction
|
||||
var skip = window.__env__ && window.__env__.TRANSLATIONS === 'enabled';
|
||||
|
||||
import coreModule from 'lib/core';
|
||||
import translateModule from 'diagram-js/lib/i18n/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');
|
||||
|
||||
|
||||
skip ? describe.only : describe('i18n - translate', function() {
|
||||
// skipping this file during translation extraction
|
||||
|
||||
collectTranslations ? describe.skip : describe('i18n - translate', function() {
|
||||
|
||||
beforeEach(bootstrapModeler(diagramXML, {
|
||||
modules: [
|
||||
|
Loading…
x
Reference in New Issue
Block a user