import test from 'ava';
import Canvas from 'canvas';
import mergeImages from '../';
import fixtures from './fixtures';

test('mergeImages rejects Promise if image load errors', async t => {
	t.plan(1);
	t.throws(mergeImages([1], { Canvas }));
});

@@ -113,16 +113,151 @@
 ures';%0A%0A
+test('mergeImages rejects Promise if node-canvas instance isn%5C't passed in', async t =%3E %7B%0A%09t.plan(1);%0A%09t.throws(mergeImages(%5B%5D));%0A%7D);%0A%0A
 test('me

Test mergeImages rejects Promise if node-canvas instance isn\'t passed in