mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-01-10 09:05:58 +00:00
5c2a079307
This commit extracts the test helper utility to its own module. Use in bpmn-js extensions via var Helper = require('bpmn-js/test/helper'); This adds the global helper bindings bootstrapModeler/Viewer and inject.
7 lines
228 B
JavaScript
7 lines
228 B
JavaScript
var TestHelper = module.exports = require('./helper');
|
|
|
|
var fs = require('fs');
|
|
|
|
// insert diagram.css
|
|
TestHelper.insertCSS('diagram.css', fs.readFileSync(__dirname + '/../node_modules/diagram-js/assets/diagram.css', 'utf-8'));
|