MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / expectOk

Function expectOk

packages/cli/src/utils/motionSpec.test.ts:17–20  ·  view source on GitHub ↗
(result: ReturnType<typeof parseMotionSpec>)

Source from the content-addressed store, hash-verified

15};
16
17function expectOk(result: ReturnType<typeof parseMotionSpec>): MotionSpec {
18 if (!result.ok) throw new Error(`expected ok, got errors: ${result.errors.join(", ")}`);
19 return result.spec;
20}
21
22describe("parseMotionSpec", () => {
23 it("parses the RFC four-assertion spec", () => {

Callers 1

motionSpec.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected