Files
openlayers/test/spec/ol/control/mouseposition.test.js
Tim Schaub 7f47883c48 Transformed
2017-12-12 06:53:18 -07:00

24 lines
708 B
JavaScript

import _ol_control_MousePosition_ from '../../../../src/ol/control/MousePosition.js';
describe('ol.control.MousePosition', function() {
describe('constructor', function() {
it('can be constructed without arguments', function() {
var instance = new _ol_control_MousePosition_();
expect(instance).to.be.an(_ol_control_MousePosition_);
expect(instance.element.className).to.be('ol-mouse-position');
});
it('creates the element with the provided class name', function() {
var className = 'foobar';
var instance = new _ol_control_MousePosition_({
className: className
});
expect(instance.element.className).to.be(className);
});
});
});