Uncomment tests.

This commit is contained in:
Sam Rose 2024-04-25 16:53:21 +01:00
parent b07db7b098
commit e15345030f
No known key found for this signature in database
1 changed files with 42 additions and 41 deletions

View File

@ -19,12 +19,12 @@ import _ from "lodash"
jest.unmock("mssql")
describe.each([
// ["lucene", undefined],
["lucene", undefined],
["sqs", undefined],
// [DatabaseName.POSTGRES, getDatasource(DatabaseName.POSTGRES)],
// [DatabaseName.MYSQL, getDatasource(DatabaseName.MYSQL)],
// [DatabaseName.SQL_SERVER, getDatasource(DatabaseName.SQL_SERVER)],
// [DatabaseName.MARIADB, getDatasource(DatabaseName.MARIADB)],
[DatabaseName.POSTGRES, getDatasource(DatabaseName.POSTGRES)],
[DatabaseName.MYSQL, getDatasource(DatabaseName.MYSQL)],
[DatabaseName.SQL_SERVER, getDatasource(DatabaseName.SQL_SERVER)],
[DatabaseName.MARIADB, getDatasource(DatabaseName.MARIADB)],
])("/api/:sourceId/search (%s)", (name, dsProvider) => {
const isSqs = name === "sqs"
const isLucene = name === "lucene"
@ -774,6 +774,7 @@ describe.each([
}).toContainExactly([{ auto: 1 }, { auto: 2 }]))
})
isSqs &&
describe("sort", () => {
it("sorts ascending", () =>
expectSearch({