Add node tests
This commit is contained in:
12
test/node/ol/asserts.test.js
Normal file
12
test/node/ol/asserts.test.js
Normal file
@@ -0,0 +1,12 @@
|
||||
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();
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user