From 4fa6827f8c4dc47fd4d26babb885b5281f73b39f Mon Sep 17 00:00:00 2001 From: Nico Rehwaldt Date: Wed, 22 Jun 2016 00:42:54 +0200 Subject: [PATCH] test(integration): correctly instantiate CustomElementFactory --- test/integration/custom-elements/CustomElementFactory.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/integration/custom-elements/CustomElementFactory.js b/test/integration/custom-elements/CustomElementFactory.js index 59a0ebb2..fc7bffdc 100644 --- a/test/integration/custom-elements/CustomElementFactory.js +++ b/test/integration/custom-elements/CustomElementFactory.js @@ -7,8 +7,8 @@ var BpmnElementFactory = require('../../../lib/features/modeling/ElementFactory' LabelUtil = require('../../../lib/util/LabelUtil'); -function CustomElementFactory(bpmnFactory, moddle) { - BpmnElementFactory.call(this, bpmnFactory, moddle); +function CustomElementFactory(injector) { + injector.invoke(BpmnElementFactory, this); var self = this; @@ -40,7 +40,7 @@ inherits(CustomElementFactory, BpmnElementFactory); module.exports = CustomElementFactory; -CustomElementFactory.$inject = [ 'bpmnFactory', 'moddle' ]; +CustomElementFactory.$inject = [ 'injector' ]; /**