We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef96f78 commit d5092c6Copy full SHA for d5092c6
test/test.js
@@ -261,10 +261,14 @@
261
})
262
263
it('Handle image loading error', function () {
264
- return loadImage('404').catch(function (err) {
265
- expect(err).to.be.an.instanceOf(window.Event)
266
- expect(err.type).to.equal('error')
267
- })
+ return loadImage('404')
+ .then(function () {
+ throw new Error('Promise not rejected')
+ })
268
+ .catch(function (err) {
269
+ expect(err).to.be.an.instanceOf(window.Event)
270
+ expect(err.type).to.equal('error')
271
272
273
274
it('Provide original image width+height in callback data', function () {
0 commit comments