23 lines · 831 B · TypeScript
RawDownload
import { beforeEach, describe, expect, it } from "vite-plus/test"; import { removeLocalStorageItem } from "./hooks/useLocalStorage";import {  dismissProviderUpdateNotification,  isProviderUpdateNotificationDismissed,  PROVIDER_UPDATE_DISMISSALS_STORAGE_KEY,} from "./providerUpdateDismissal"; describe("providerUpdateDismissal", () => {  beforeEach(() => {    removeLocalStorageItem(PROVIDER_UPDATE_DISMISSALS_STORAGE_KEY);  });   it("persists provider update dismissals by notification key", () => {    expect(isProviderUpdateNotificationDismissed("opencode:1.14.33")).toBe(false);     dismissProviderUpdateNotification("opencode:1.14.33");     expect(isProviderUpdateNotificationDismissed("opencode:1.14.33")).toBe(true);    expect(isProviderUpdateNotificationDismissed("opencode:1.14.34")).toBe(false);  });});

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t