Skip to content

Commit

Permalink
Keep XO happy
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechilds committed Jun 30, 2017
1 parent 7605251 commit 47dd74f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions test/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import mergeImages from '../';

test('mergeImages rejects Promise if node-canvas instance isn\'t passed in', async t => {
t.plan(1);
t.throws(mergeImages([]));
await t.throws(mergeImages([]));
});

test('mergeImages rejects Promise if image load errors', async t => {
t.plan(1);
t.throws(mergeImages([1], { Canvas }));
await t.throws(mergeImages([1], { Canvas }));
});
6 changes: 3 additions & 3 deletions test/unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ test('mergeImages returns correct data URI', async t => {
const image = await fixtures.getImage('face.png');
const b64 = await mergeImages([image], {
format: `image/${format}`,
Canvas: Canvas
Canvas
});

const expectedB64 = await fixtures.getDataURI(`face.${format}`);
Expand All @@ -49,7 +49,7 @@ test('mergeImages uses custom dimensions', async t => {
const b64 = await mergeImages([image], {
width: 128,
height: 128,
Canvas: Canvas
Canvas
});

const expectedB64 = await fixtures.getDataURI('face-custom-dimension.png');
Expand Down Expand Up @@ -80,7 +80,7 @@ test('mergeImages uses custom jpeg quality', async t => {
const b64 = await mergeImages([image], {
format: 'image/jpeg',
quality: 0.1,
Canvas: Canvas
Canvas
});

const expectedB64 = await fixtures.getDataURI('face-low-quality.jpeg');
Expand Down

0 comments on commit 47dd74f

Please sign in to comment.