Skip to content

Commit

Permalink
test: 💍 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jaskaransarkaria committed Nov 4, 2021
1 parent 6aac340 commit 1546440
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/components/HexGrid/HexGrid.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@
>
<div class="hex-in">
<div class="hex-link">
<img src="/faith.jpg" alt="placeholder" data-testid="hex-image" />
<img
src={`https://enki.imgix.net/${category.Id}-0`}
alt="placeholder"
data-testid="hex-image"
/>
<img
src={`https://enki.imgix.net/hex_${Math.floor(
Math.random() * (6 - 1 + 1) + 1
Expand Down
2 changes: 1 addition & 1 deletion src/components/HexGrid/HexGrid.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe('GIVEN HexGrid', () => {
expect(screen.getByTestId('hex-image')).toBeInTheDocument();
expect(screen.getByTestId('hex-image')).toHaveAttribute(
'src',
'/faith.jpg'
'https://enki.imgix.net/123-0'
);
});

Expand Down

0 comments on commit 1546440

Please sign in to comment.