Skip to content

Commit

Permalink
test(helpers): test Imgix URL parameters aliases are respected
Browse files Browse the repository at this point in the history
  • Loading branch information
lihbr committed Jul 5, 2023
1 parent 3bc5b95 commit 76fa2ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/helpers-asImageSrc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ it("applies given Imgix URL parameters", () => {
};

expect(asImageSrc(field, { sat: 100 })).toBe(`${field.url}&sat=100`);
expect(asImageSrc(field, { w: 100 })).toBe(`${field.url}&w=100`);
expect(asImageSrc(field, { width: 100 })).toBe(`${field.url}&width=100`);
});

it("returns null when image field is empty", () => {
Expand Down

0 comments on commit 76fa2ca

Please sign in to comment.