Skip to content

Commit

Permalink
Fix test streaming content to reflect latest API changes (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
chaosrealm authored Nov 22, 2024
1 parent fe7bb87 commit f1e822f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/content.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ test("test streaming content", { timeout: 180000 }, async () => {
});

let sawPlan = false;
let sawDraft = false;
let sawWriteSection = false;
let sawEditorial = false;

statusStream.on("data", (data) => {
Expand All @@ -216,8 +216,8 @@ test("test streaming content", { timeout: 180000 }, async () => {
case "plan":
sawPlan = true;
break;
case "first-draft":
sawDraft = true;
case "write-section":
sawWriteSection = true;
break;
case "editorial":
sawEditorial = true;
Expand All @@ -233,7 +233,7 @@ test("test streaming content", { timeout: 180000 }, async () => {
expect(contentResult.version).toBe(0);
expect(contentResult.commands.length).toBe(1);
expect(sawPlan).toBe(true);
expect(sawDraft).toBe(true);
expect(sawWriteSection).toBe(true);
expect(sawEditorial).toBe(true);
expect(contentResult.status).toBe(ContentStatus.Draft);
expect(contentResult.publishedVersion).toBe(undefined);
Expand Down

0 comments on commit f1e822f

Please sign in to comment.