Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
underbluewaters committed Aug 10, 2023
1 parent 05539a2 commit 1c46a68
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions packages/api/tests/tableOfContentsItems.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -609,13 +609,6 @@ describe("Data validation", () => {
)}, data_layer_id) values (${projectId}, 'item1', false, ${id()}, ${val}, ${layerId}) returning id`
);
expect(tocId).toBeTruthy();
expect(
conn.oneFirst(
sql`insert into table_of_contents_items(project_id, title, is_folder, stable_id, ${sql.identifier(
[prop]
)}) values (${projectId}, 'item1', true, ${id()}, ${val}) returning id`
)
).rejects.toThrow(/Folders/);
await conn.any(sql`ROLLBACK to before_thing`);
}
expect(
Expand Down

0 comments on commit 1c46a68

Please sign in to comment.