We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6e493c commit 755ab26Copy full SHA for 755ab26
2 files changed
src/app/components/layout/Header.tsx
@@ -132,6 +132,7 @@ export default function Header() {
132
</button>
133
134
<button
135
+ type="button"
136
onClick={handleLogout}
137
class="text-sm text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 shrink-0"
138
aria-label="Sign out"
tests/components/shared/NotificationDrawer.test.tsx
@@ -14,10 +14,12 @@ beforeEach(() => {
14
clearNotifications();
15
clearMutedSources();
16
vi.useFakeTimers();
17
+ vi.spyOn(window, "matchMedia").mockReturnValue({ matches: false } as MediaQueryList);
18
});
19
20
afterEach(() => {
21
vi.useRealTimers();
22
+ vi.restoreAllMocks();
23
24
25
function renderDrawer(open = true, onClose = vi.fn()) {
0 commit comments