You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
359 B

import test from 'ava';
import Canvas from 'canvas';
import mergeImages from '../';
test('mergeImages rejects Promise if node-canvas instance isn\'t passed in', async t => {
t.plan(1);
await t.throws(mergeImages([]));
});
test('mergeImages rejects Promise if image load errors', async t => {
t.plan(1);
await t.throws(mergeImages([1], { Canvas }));
});