Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-ebey committed Jun 4, 2024
1 parent dc8f30d commit c8f3ef5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/turbo-stream.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ test("should encode and decode object", async () => {
test("should encode and decode object and dedupe object key, value, and promise value", async () => {
const input = { foo: "bar", bar: "bar", baz: Promise.resolve("bar") };
const output = await quickDecode(encode(input));
const { baz: bazResult, ...partialResult } = output;
const { baz: bazResult, ...partialResult } = output as typeof input;
const { baz: bazInput, ...partialInput } = input;

expect(partialResult).toEqual(partialInput);
Expand Down

0 comments on commit c8f3ef5

Please sign in to comment.