Skip to content

Commit 8e6e897

Browse files
committed
fix: improve wording for tests
1 parent e8a88e6 commit 8e6e897

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

app/shared/lib/__tests__/use-can-native-share.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,36 +17,36 @@ describe('useCanNativeShare', () => {
1717
Object.defineProperty(navigator, 'canShare', { configurable: true, value: undefined, writable: true });
1818
});
1919

20-
it('returns false when navigator.share is not available', () => {
20+
it('should return false when navigator.share is not available', () => {
2121
mockMatchMedia(true, true);
2222
const { result } = renderHook(() => useCanNativeShare());
2323
expect(result.current).toBe(false);
2424
});
2525

26-
it('returns false when navigator.canShare is not available', () => {
26+
it('should return false when navigator.canShare is not available', () => {
2727
mockMatchMedia(true, true);
2828
Object.defineProperty(navigator, 'share', { configurable: true, value: vi.fn() });
2929
const { result } = renderHook(() => useCanNativeShare());
3030
expect(result.current).toBe(false);
3131
});
3232

33-
it('returns false when device is not mobile (no coarse pointer)', () => {
33+
it('should return false when device is not mobile (no coarse pointer)', () => {
3434
mockMatchMedia(false, true);
3535
Object.defineProperty(navigator, 'share', { configurable: true, value: vi.fn() });
3636
Object.defineProperty(navigator, 'canShare', { configurable: true, value: vi.fn() });
3737
const { result } = renderHook(() => useCanNativeShare());
3838
expect(result.current).toBe(false);
3939
});
4040

41-
it('returns false when device is not mobile (has hover support)', () => {
41+
it('should return false when device is not mobile (has hover support)', () => {
4242
mockMatchMedia(true, false);
4343
Object.defineProperty(navigator, 'share', { configurable: true, value: vi.fn() });
4444
Object.defineProperty(navigator, 'canShare', { configurable: true, value: vi.fn() });
4545
const { result } = renderHook(() => useCanNativeShare());
4646
expect(result.current).toBe(false);
4747
});
4848

49-
it('returns true when share APIs are available and device is mobile', () => {
49+
it('should return true when share APIs are available and device is mobile', () => {
5050
mockMatchMedia(true, true);
5151
Object.defineProperty(navigator, 'share', { configurable: true, value: vi.fn() });
5252
Object.defineProperty(navigator, 'canShare', { configurable: true, value: vi.fn() });

0 commit comments

Comments
 (0)