Skip to content

Commit 54935e5

Browse files
committed
test not needed
1 parent 18d2fd7 commit 54935e5

File tree

1 file changed

+0
-37
lines changed

1 file changed

+0
-37
lines changed

apps/web/src/composerDraftStore.test.ts

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -531,43 +531,6 @@ describe("composerDraftStore codex fast mode", () => {
531531
});
532532
});
533533

534-
describe("composerDraftStore persisted attachments", () => {
535-
const threadId = ThreadId.makeUnsafe("thread-persisted-attachments");
536-
537-
beforeEach(() => {
538-
useComposerDraftStore.setState({
539-
draftsByThreadId: {},
540-
draftThreadsByThreadId: {},
541-
projectDraftThreadIdByProjectId: {},
542-
});
543-
localStorage.clear();
544-
});
545-
546-
it("verifies attachments after flushing the debounced storage write", async () => {
547-
const image = makeImage({
548-
id: "img-persisted",
549-
previewUrl: "blob:persisted",
550-
});
551-
552-
useComposerDraftStore.getState().addImage(threadId, image);
553-
useComposerDraftStore.getState().syncPersistedAttachments(threadId, [
554-
{
555-
id: image.id,
556-
name: image.name,
557-
mimeType: image.mimeType,
558-
sizeBytes: image.sizeBytes,
559-
dataUrl: "data:image/png;base64,AQ==",
560-
},
561-
]);
562-
563-
await Promise.resolve();
564-
565-
const draft = useComposerDraftStore.getState().draftsByThreadId[threadId];
566-
expect(draft?.persistedAttachments.map((attachment) => attachment.id)).toEqual([image.id]);
567-
expect(draft?.nonPersistedImageIds).toEqual([]);
568-
});
569-
});
570-
571534
describe("composerDraftStore setModel", () => {
572535
const threadId = ThreadId.makeUnsafe("thread-model");
573536

0 commit comments

Comments
 (0)