await DB cleanup in chart.ts unit test
This commit is contained in:
parent
d3ac7598b7
commit
bbdc62992a
1 changed files with 1 additions and 1 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue