Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
tats-u committed Feb 23, 2023
1 parent b49f812 commit d227356
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/lqip-loader/src/__tests__/lqip.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ describe('base64', () => {
] as [string, string][])(
'generates a valid base64 for %s',
async (imgName, expectedBase64) => {
await expect(base64(imgName)).resolves.toContain(expectedBase64);
await expect(base64(resolveFixturePath(imgName))).resolves.toContain(
expectedBase64,
);
},
);

Expand All @@ -47,7 +49,9 @@ describe('base64', () => {
] as [string, RegExp][])(
'generates a valid base64 for %s (using regexp)',
async (imgName, expectedBase64) => {
await expect(base64(imgName)).resolves.toMatch(expectedBase64);
await expect(base64(resolveFixturePath(imgName))).resolves.toMatch(
expectedBase64,
);
},
);
});

0 comments on commit d227356

Please sign in to comment.