Skip to content

Commit

Permalink
test: amend range test (twilio-labs#72)
Browse files Browse the repository at this point in the history
* feat(pixels): add my new pixel

* Amend pixel in Range text to check for >=0
  • Loading branch information
simeydk authored and dkundel committed Oct 1, 2019
1 parent c0868bb commit 28f02f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions __tests__/data.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ describe('pixels', () => {

for (const pixel of pixels.data) {
expect(pixel.x).toBeLessThan(defaults.image.width);
expect(pixel.x).toBeGreaterThanOrEqual(0);
expect(pixel.y).toBeLessThan(defaults.image.height);
expect(pixel.y).toBeGreaterThanOrEqual(0);
}
});

Expand Down

0 comments on commit 28f02f3

Please sign in to comment.