mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-01-13 10:34:55 +00:00
5b2b053230
Add a test that ensures the distribution works. Related to #725
38 lines
676 B
JavaScript
38 lines
676 B
JavaScript
'use strict';
|
|
|
|
|
|
describe('bpmn-modeler', function() {
|
|
|
|
it('should expose globals', function() {
|
|
|
|
var BpmnJS = window.BpmnJS;
|
|
|
|
// then
|
|
expect(BpmnJS).to.exist;
|
|
expect(new BpmnJS()).to.exist;
|
|
});
|
|
|
|
|
|
it('should expose Viewer and NavigatedViewer', function() {
|
|
|
|
var BpmnJS = window.BpmnJS;
|
|
|
|
// then
|
|
expect(BpmnJS.NavigatedViewer).to.exist;
|
|
expect(new BpmnJS.NavigatedViewer()).to.exist;
|
|
|
|
expect(BpmnJS.Viewer).to.exist;
|
|
expect(new BpmnJS.Viewer()).to.exist;
|
|
});
|
|
|
|
|
|
it('should import initial diagram', function(done) {
|
|
|
|
var BpmnJS = window.BpmnJS;
|
|
|
|
// then
|
|
/* global testImport */
|
|
testImport(BpmnJS, done);
|
|
});
|
|
|
|
}); |