mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-01-17 20:41:32 +00:00
c58532aeac
This commit puts all import related stuff into the import module. The core module remains as an entry point to require the basic modules needed by bpmn-js. At the time this is { import, draw }.
35 lines
765 B
JavaScript
35 lines
765 B
JavaScript
'use strict';
|
|
|
|
var Matchers = require('../../../Matchers'),
|
|
TestHelper = require('../../../TestHelper');
|
|
|
|
/* global bootstrapViewer, inject */
|
|
|
|
|
|
var fs = require('fs');
|
|
|
|
var contextPadModule = require('../../../../lib/features/context-pad'),
|
|
bpmnModule = require('../../../../lib/core');
|
|
|
|
|
|
describe('features - context-pad', function() {
|
|
|
|
beforeEach(Matchers.addDeepEquals);
|
|
|
|
|
|
var diagramXML = fs.readFileSync('test/fixtures/bpmn/complex.bpmn', 'utf-8');
|
|
|
|
var testModules = [ contextPadModule, bpmnModule ];
|
|
|
|
beforeEach(bootstrapViewer(diagramXML, { modules: testModules }));
|
|
|
|
|
|
describe('bootstrap', function() {
|
|
|
|
it('should bootstrap', inject(function(contextPadProvider) {
|
|
expect(contextPadProvider).toBeDefined();
|
|
}));
|
|
|
|
});
|
|
|
|
}); |