From 5051420323faa5ba9b8da1714445c711b98a7430 Mon Sep 17 00:00:00 2001 From: Nico Rehwaldt Date: Mon, 21 Dec 2020 09:50:49 +0100 Subject: [PATCH] test(i18n): correctly disable during translation collection --- test/spec/i18n/translateSpec.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/spec/i18n/translateSpec.js b/test/spec/i18n/translateSpec.js index 5955db94..346521e3 100644 --- a/test/spec/i18n/translateSpec.js +++ b/test/spec/i18n/translateSpec.js @@ -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: [