Fix and update tests

This commit is contained in:
Half-Shot
2024-10-29 09:45:30 +00:00
parent 23d849bd9a
commit f13bd7923b
2 changed files with 31 additions and 4 deletions

View File

@@ -33,4 +33,11 @@ describe("RaisedHandIndicator", () => {
);
expect(container.firstChild).toMatchSnapshot();
});
test("renders a smaller indicator when minature is specified", () => {
const dateTime = new Date();
const { container } = render(
<RaisedHandIndicator raisedHandTime={dateTime} minature />,
);
expect(container.firstChild).toMatchSnapshot();
});
});

View File

@@ -1,6 +1,6 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`RaisedHandIndicator > renders an indicator when a hand has been raised 1`] = `
exports[`RaisedHandIndicator > renders a smaller indicator when minature is specified 1`] = `
<div
class="raisedHandWidget"
>
@@ -20,12 +20,32 @@ exports[`RaisedHandIndicator > renders an indicator when a hand has been raised
</div>
`;
exports[`RaisedHandIndicator > renders an indicator when a hand has been raised with the expected time 1`] = `
exports[`RaisedHandIndicator > renders an indicator when a hand has been raised 1`] = `
<div
class="raisedHandWidget"
class="raisedHandWidget raisedHandWidgetLarge"
>
<div
class="raisedHand"
class="raisedHand raisedHandLarge"
>
<span
aria-label="raised hand"
role="img"
>
</span>
</div>
<p>
00:01
</p>
</div>
`;
exports[`RaisedHandIndicator > renders an indicator when a hand has been raised with the expected time 1`] = `
<div
class="raisedHandWidget raisedHandWidgetLarge"
>
<div
class="raisedHand raisedHandLarge"
>
<span
aria-label="raised hand"