| 1 | import { assert, describe, it } from "vite-plus/test"; |
| 2 | |
| 3 | import { hiddenToastActionProps, stackedThreadToast } from "./toastHelpers"; |
| 4 | |
| 5 | describe("hiddenToastActionProps", () => { |
| 6 | it("is a defined update payload so Base UI can replace a previous action", () => { |
| 7 | assert.equal(hiddenToastActionProps.children, null); |
| 8 | assert.equal( |
| 9 | "actionProps" in stackedThreadToast({ type: "loading", title: "Updating" }), |
| 10 | false, |
| 11 | ); |
| 12 | assert.deepEqual( |
| 13 | stackedThreadToast({ |
| 14 | type: "loading", |
| 15 | title: "Updating", |
| 16 | actionProps: hiddenToastActionProps, |
| 17 | }).actionProps, |
| 18 | hiddenToastActionProps, |
| 19 | ); |
| 20 | }); |
| 21 | }); |