test(integration): correctly instantiate CustomElementFactory

This commit is contained in:
Nico Rehwaldt 2016-06-22 00:42:54 +02:00
parent fcf2bbd9aa
commit 4fa6827f8c
1 changed files with 3 additions and 3 deletions

View File

@ -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' ];
/**