Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

useWorkspaceMutationRefresh.test.ts

12 lines499 Bytes

1import { describe, expect, it } from "vite-plus/test";
2​
3import { workspaceMutationRefreshToken } from "./useWorkspaceMutationRefresh";
4​
5describe("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});