mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-01-14 19:14:37 +00:00
04437a8354
Related to bpmn-io/bpmn-js#189
42 lines
760 B
JavaScript
42 lines
760 B
JavaScript
'use strict';
|
|
|
|
require('../../../TestHelper');
|
|
|
|
|
|
var Modeler = require('../../../../lib/Modeler');
|
|
|
|
var domQuery = require('min-dom/lib/query');
|
|
|
|
|
|
describe('palette', function() {
|
|
|
|
var container;
|
|
|
|
beforeEach(function() {
|
|
container = jasmine.getEnv().getTestContainer();
|
|
});
|
|
|
|
|
|
it('should should draw palette', function(done) {
|
|
|
|
var modeler = new Modeler({ container: container });
|
|
modeler.createDiagram(function(err) {
|
|
|
|
// assume
|
|
var provider = modeler.get('paletteProvider');
|
|
|
|
// then
|
|
expect(provider).toBeTruthy();
|
|
|
|
// when
|
|
var paletteElement = domQuery('.djs-palette', container);
|
|
|
|
// then
|
|
expect(domQuery.all('.entry', paletteElement).length).toBe(7);
|
|
|
|
done(err);
|
|
});
|
|
});
|
|
|
|
});
|