13 lines
308 B
JavaScript
13 lines
308 B
JavaScript
import expect from '../expect.js';
|
|
import {assert} from '../../../src/ol/asserts.js';
|
|
|
|
describe('ol/asserts.js', function () {
|
|
describe('assert', function () {
|
|
it('throws an exception', function () {
|
|
expect(function () {
|
|
assert(false, 42);
|
|
}).to.throwException();
|
|
});
|
|
});
|
|
});
|