Fixing test case.

This commit is contained in:
mike12345567 2024-03-22 13:01:51 +00:00
parent 4f2af86871
commit 185e9c3425
1 changed files with 4 additions and 1 deletions

View File

@ -143,7 +143,10 @@ describe("/api/env/variables", () => {
delete response.body.datasource.config delete response.body.datasource.config
expect(events.query.previewed).toHaveBeenCalledWith( expect(events.query.previewed).toHaveBeenCalledWith(
response.body.datasource, response.body.datasource,
queryPreview {
...queryPreview,
nullDefaultSupport: true,
}
) )
expect(pg.Client).toHaveBeenCalledWith({ password: "test", ssl: undefined }) expect(pg.Client).toHaveBeenCalledWith({ password: "test", ssl: undefined })
}) })