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 { basicTable } from "../../../tests/utilities/structures"
import { import {
Table, Table,
@ -17,14 +18,18 @@ describe("Attempt to run a basic loop automation", () => {
beforeAll(async () => { beforeAll(async () => {
await config.init() await config.init()
await automation.init()
}) })
beforeEach(async () => { beforeEach(async () => {
await config.api.automation.deleteAll()
table = await config.api.table.save(basicTable()) table = await config.api.table.save(basicTable())
await config.api.row.save(table._id!, {}) await config.api.row.save(table._id!, {})
}) })
afterAll(async () => { afterAll(async () => {
await automation.shutdown()
config.end() config.end()
}) })