await DB cleanup in chart.ts unit test

This commit is contained in:
Hazelnoot 2025-10-01 11:57:19 -04:00
parent d3ac7598b7
commit bbdc62992a

View file

@ -36,7 +36,7 @@ describe('Chart', () => {
let clock: lolex.InstalledClock;
beforeEach(async () => {
if (db) db.destroy();
if (db) await db.destroy();
db = new DataSource({
type: 'postgres',