bpmn-js/test/TestHelper.js
Nico Rehwaldt da4f321284 chore(project): use external bpmn-font
This is a breaking change for users that may rely on `assets/bpmn-font`
being present in the library.

BREAKING CHANGE:

* use `bpmn-font` package, specifically `bpmn-font/dist` if you need the
font previously contained in the assets directory.
2018-02-02 11:24:00 +01:00

20 lines
652 B
JavaScript

'use strict';
var TestHelper = module.exports = require('./helper');
TestHelper.insertCSS('diagram-js.css', require('diagram-js/assets/diagram-js.css'));
TestHelper.insertCSS('bpmn-embedded.css', require('bpmn-font/dist/css/bpmn-embedded.css'));
TestHelper.insertCSS('diagram-js-testing.css',
'body .test-container { height: auto }' +
'body .test-container .test-content-container { height: 90vmin; }'
);
// add suite specific matchers
global.chai.use(require('chai-match'));
global.chai.use(require('./matchers/BoundsMatchers'));
global.chai.use(require('./matchers/ConnectionMatchers'));
global.chai.use(require('./matchers/JSONMatcher'));