Skip to content

Commit

Permalink
[refactor] Fix typo (#6654)
Browse files Browse the repository at this point in the history
Signed-off-by: timesince <[email protected]>
  • Loading branch information
timesince authored Aug 14, 2024
1 parent e7726be commit 5fa987c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ describe('@mantine/hooks/use-color-scheme', () => {
expect(trace).toHaveBeenCalledTimes(1);
expect(trace.mock.calls[0][0]).toBe('dark');
});
it('correctly returns initial light state with deafult props', async () => {
it('correctly returns initial light state with default props', async () => {
render(<WrapperComponent />);
expect(trace).toHaveBeenCalledTimes(1);
expect(trace.mock.calls[0][0]).toBe('light');
});
it('correctly returns initial dark state with deafult props', async () => {
it('correctly returns initial dark state with default props', async () => {
window.matchMedia = mockmatchMedia;
render(<WrapperComponent />);
expect(trace).toHaveBeenCalledTimes(2);
Expand Down

0 comments on commit 5fa987c

Please sign in to comment.