bpmn-js/test/spec/draw/BpmnRenderUtilSpec.js
Nico Rehwaldt d3449ca87c chore(project): es6ify source code
* use ES6 import / export
* UTILS: export individual utilities
* TESTS: localize TestHelper includes

BREAKING CHANGE:

* all utilities export independent functions
* library sources got ported to ES6. You must now use
  a ES module bundler such as Browserify + babelify or
  Webpack to consume this library (or parts of it).
2018-04-03 16:32:14 +02:00

89 lines
1.4 KiB
JavaScript

'use strict';
import {
isTypedEvent,
isThrowEvent,
isCollection,
getDi,
getSemantic,
getCirclePath,
getRoundRectPath,
getDiamondPath,
getRectPath,
getFillColor,
getStrokeColor
} from 'lib/draw/BpmnRenderUtil';
describe('BpmnRenderUtil', function() {
it('should expose isTypedEvent', function() {
expect(isTypedEvent).to.be.a('function');
});
it('should expose isThrowEvent', function() {
expect(isThrowEvent).to.be.a('function');
});
it('should expose isCollection', function() {
expect(isCollection).to.be.a('function');
});
it('should expose getDi', function() {
expect(getDi).to.be.a('function');
});
it('should expose getSemantic', function() {
expect(getSemantic).to.be.a('function');
});
it('should expose getCirclePath', function() {
expect(getCirclePath).to.be.a('function');
});
it('should expose getRoundRectPath', function() {
expect(getRoundRectPath).to.be.a('function');
});
it('should expose getDiamondPath', function() {
expect(getDiamondPath).to.be.a('function');
});
it('should expose getRectPath', function() {
expect(getRectPath).to.be.a('function');
});
it('should expose getFillColor', function() {
expect(getFillColor).to.be.a('function');
});
it('should expose getStrokeColor', function() {
expect(getStrokeColor).to.be.a('function');
});
});