bpmn-js/test/spec/features/context-pad/ContextPadProviderSpec.js

35 lines
764 B
JavaScript
Raw Normal View History

'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/simple.bpmn', 'utf-8');
var testModules = [ contextPadModule, bpmnModule ];
beforeEach(bootstrapViewer(diagramXML, { modules: testModules }));
describe('bootstrap', function() {
it('should bootstrap', inject(function(contextPadProvider) {
expect(contextPadProvider).toBeDefined();
}));
});
});