Named export for ol/asserts

This commit is contained in:
Frederic Junod
2017-12-17 18:10:59 +01:00
parent 7202573f82
commit 9349ba5403
33 changed files with 89 additions and 92 deletions

View File

@@ -1,4 +1,4 @@
import _ol_asserts_ from '../../../src/ol/asserts.js';
import {assert} from '../../../src/ol/asserts.js';
describe('ol.asserts', function() {
@@ -6,7 +6,7 @@ describe('ol.asserts', function() {
describe('ol.asserts.assert', function() {
it('throws an exception', function() {
expect(function() {
_ol_asserts_.assert(false, 42);
assert(false, 42);
}).to.throwException();
});
});