Reinstate automation deleting.

This commit is contained in:
Sam Rose 2025-03-04 17:55:33 +00:00
parent e38d4c1e48
commit 4e51013631
No known key found for this signature in database
1 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,4 @@
import * as automation from "../../index"
import { basicTable } from "../../../tests/utilities/structures"
import {
Table,
@ -17,14 +18,18 @@ describe("Attempt to run a basic loop automation", () => {
beforeAll(async () => {
await config.init()
await automation.init()
})
beforeEach(async () => {
await config.api.automation.deleteAll()
table = await config.api.table.save(basicTable())
await config.api.row.save(table._id!, {})
})
afterAll(async () => {
await automation.shutdown()
config.end()
})