21 lines · 655 B · TypeScript
RawDownload
import { assert, describe, it } from "vite-plus/test"; import { hiddenToastActionProps, stackedThreadToast } from "./toastHelpers"; describe("hiddenToastActionProps", () => {  it("is a defined update payload so Base UI can replace a previous action", () => {    assert.equal(hiddenToastActionProps.children, null);    assert.equal(      "actionProps" in stackedThreadToast({ type: "loading", title: "Updating" }),      false,    );    assert.deepEqual(      stackedThreadToast({        type: "loading",        title: "Updating",        actionProps: hiddenToastActionProps,      }).actionProps,      hiddenToastActionProps,    );  });});

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