diff --git a/packages/server/src/api/routes/tests/query.seq.spec.js b/packages/server/src/api/routes/tests/query.seq.spec.js index 699d95fea2..d7481fd224 100644 --- a/packages/server/src/api/routes/tests/query.seq.spec.js +++ b/packages/server/src/api/routes/tests/query.seq.spec.js @@ -242,6 +242,7 @@ describe("/queries", () => { }) expect(res.body.rows.length).toEqual(1) expect(events.query.previewed).toBeCalledTimes(1) + delete datasource.config expect(events.query.previewed).toBeCalledWith(datasource, query) })