Skip to content

Commit

Permalink
Tests: tighten composite offset thresholds
Browse files Browse the repository at this point in the history
  • Loading branch information
lovell committed Feb 15, 2020
1 parent e44c12f commit 1717173
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
Binary file modified test/fixtures/expected/overlay-offset-0.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/fixtures/expected/overlay-offset-with-gravity-tile.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/fixtures/expected/overlay-offset-with-gravity.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/fixtures/expected/overlay-offset-with-tile.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions test/unit/composite.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ describe('composite', () => {

it('zero offset', done => {
sharp(fixtures.inputJpg)
.resize(400)
.resize(80)
.composite([{
input: fixtures.inputPngWithTransparency16bit,
top: 0,
Expand All @@ -157,7 +157,7 @@ describe('composite', () => {

it('offset and gravity', done => {
sharp(fixtures.inputJpg)
.resize(400)
.resize(80)
.composite([{
input: fixtures.inputPngWithTransparency16bit,
left: 10,
Expand All @@ -174,7 +174,7 @@ describe('composite', () => {

it('offset, gravity and tile', done => {
sharp(fixtures.inputJpg)
.resize(400)
.resize(80)
.composite([{
input: fixtures.inputPngWithTransparency16bit,
left: 10,
Expand All @@ -192,7 +192,7 @@ describe('composite', () => {

it('offset and tile', done => {
sharp(fixtures.inputJpg)
.resize(400)
.resize(80)
.composite([{
input: fixtures.inputPngWithTransparency16bit,
left: 10,
Expand Down

0 comments on commit 1717173

Please sign in to comment.