Files
openlayers/test/spec/ol/control/mouseposition.test.js
Tim Schaub ad62739a6e Use blocked scoped variables
In addition to using const and let, this also upgrades our linter config and removes lint (mostly whitespace).
2018-01-12 00:50:30 -07:00

24 lines
662 B
JavaScript

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