| 1 | import { describe, expect, it } from "vite-plus/test"; |
| 2 | |
| 3 | import { workspaceMutationRefreshToken } from "./useWorkspaceMutationRefresh"; |
| 4 | |
| 5 | describe("workspace mutation refresh", () => { |
| 6 | it("scopes the same mutation to each preview resource", () => { |
| 7 | expect(workspaceMutationRefreshToken("file:/repo/README.md", "event-1")).not.toBe( |
| 8 | workspaceMutationRefreshToken("diff:/repo", "event-1"), |
| 9 | ); |
| 10 | expect(workspaceMutationRefreshToken("file:/repo/README.md", null)).toBeNull(); |
| 11 | }); |
| 12 | }); |