Transpile sources for testing

This commit is contained in:
ahocevar
2018-07-18 17:41:42 +02:00
parent 5124c98fb5
commit 47c58d8a34
3 changed files with 20 additions and 1 deletions

View File

@@ -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);
});
});