bpmn-js/test/TestHelper.js
Nico Rehwaldt 5c2a079307 feat(tests): extract test helper to own module
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.
2014-08-25 17:58:18 +02:00

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'));