Spaces:
Paused
Paused
Download apps/web/tests/recordState.test.ts from nathycodes/presentercoach: direct link, hf CLI and curl.
- Browser
- Download file 512 Bytes
-
https://huggingface.co/spaces/nathycodes/presentercoach/resolve/main/apps/web/tests/recordState.test.ts
- Command line
-
hf download hf://spaces/nathycodes/presentercoach/apps/web/tests/recordState.test.ts
-
curl -L -o recordState.test.ts https://huggingface.co/spaces/nathycodes/presentercoach/resolve/main/apps/web/tests/recordState.test.ts
512 Bytes
| import { describe, expect, it } from "vitest"; | |
| import { useRecorderStore } from "@/store/useRecorderStore"; | |
| const getState = () => useRecorderStore.getState(); | |
| describe("recorder state machine", () => { | |
| it("transitions between statuses", () => { | |
| getState().setStatus("recording"); | |
| expect(getState().status).toBe("recording"); | |
| getState().setStatus("paused"); | |
| expect(getState().status).toBe("paused"); | |
| getState().setStatus("review"); | |
| expect(getState().status).toBe("review"); | |
| }); | |
| }); | |