refactor(data): replace schema classes with readonly models
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { createActor, fromPromise, waitFor } from "xstate";
|
||||
|
||||
import { ChatSendResponse } from "@/data/schemas/chat";
|
||||
import { ChatSendResponseSchema } from "@/data/schemas/chat";
|
||||
import type {
|
||||
UnlockMessageOutput,
|
||||
UnlockMessageRequest,
|
||||
@@ -666,7 +666,7 @@ describe("chat unlock flow", () => {
|
||||
actor.send({
|
||||
type: "ChatQueuedHttpDone",
|
||||
output: {
|
||||
response: ChatSendResponse.from({
|
||||
response: ChatSendResponseSchema.parse({
|
||||
reply: "",
|
||||
audioUrl: "",
|
||||
messageId: "",
|
||||
|
||||
Reference in New Issue
Block a user