chore(tests): allow canvas options to be provided
This commit is contained in:
parent
5b2308df32
commit
b21fb7cec3
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
var unique = require('lodash/array/unique'),
|
var unique = require('lodash/array/unique'),
|
||||||
isFunction = require('lodash/lang/isFunction'),
|
isFunction = require('lodash/lang/isFunction'),
|
||||||
assign = require('lodash/object/assign'),
|
merge = require('lodash/object/merge'),
|
||||||
forEach = require('lodash/collection/forEach');
|
forEach = require('lodash/collection/forEach');
|
||||||
|
|
||||||
var TestContainer = require('mocha-test-container-support');
|
var TestContainer = require('mocha-test-container-support');
|
||||||
|
@ -76,7 +76,7 @@ function bootstrapBpmnJS(BpmnJS, diagram, options, locals) {
|
||||||
_locals = _locals();
|
_locals = _locals();
|
||||||
}
|
}
|
||||||
|
|
||||||
_options = assign({ container: testContainer }, OPTIONS || {}, _options || {});
|
_options = merge({ container: testContainer }, OPTIONS, _options);
|
||||||
|
|
||||||
if (_locals) {
|
if (_locals) {
|
||||||
var mockModule = {};
|
var mockModule = {};
|
||||||
|
|
Loading…
Reference in New Issue