Transpile sources for testing
This commit is contained in:
@@ -22,4 +22,11 @@ describe('ol.AssertionError', function() {
|
||||
const error = new AssertionError(42);
|
||||
expect(error.name).to.be('AssertionError');
|
||||
});
|
||||
|
||||
it('is instanceof Error and AssertionError', function() {
|
||||
const error = new AssertionError(42);
|
||||
expect(error instanceof Error).to.be(true);
|
||||
expect(error instanceof AssertionError).to.be(true);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user