mirror of
https://github.com/bpmn-io/bpmn-js.git
synced 2025-08-26 12:40:20 +08:00

Behind the scenes changes: * use diagram-js Matcher util in tests * add test cases for LayoutConnection * add test cases for CreateConnection * cleanup unused test diagram Related to #2
35 lines
771 B
JavaScript
35 lines
771 B
JavaScript
'use strict';
|
|
|
|
var Matchers = require('../../../Matchers'),
|
|
TestHelper = require('../../../TestHelper');
|
|
|
|
/* global bootstrapBpmnJS, inject */
|
|
|
|
|
|
var fs = require('fs');
|
|
|
|
var contextPadModule = require('../../../../../lib/features/context-pad'),
|
|
bpmnModule = require('../../../../../lib/draw');
|
|
|
|
|
|
describe('features - context-pad', function() {
|
|
|
|
beforeEach(Matchers.addDeepEquals);
|
|
|
|
|
|
var diagramXML = fs.readFileSync('test/fixtures/bpmn/complex.bpmn', 'utf-8');
|
|
|
|
var testModules = [ contextPadModule, bpmnModule ];
|
|
|
|
beforeEach(bootstrapBpmnJS(diagramXML, { modules: testModules }));
|
|
|
|
|
|
describe('bootstrap', function() {
|
|
|
|
it('should bootstrap', inject(function(contextPadProvider) {
|
|
expect(contextPadProvider).toBeDefined();
|
|
}));
|
|
|
|
});
|
|
|
|
}); |