mirror of
https://github.com/IT4Change/gradido.git
synced 2026-03-01 12:44:43 +00:00
fix promise all in test
This commit is contained in:
parent
7d4e88f39a
commit
8aebe5d35a
@ -23,7 +23,7 @@ afterAll(async () => {
|
|||||||
|
|
||||||
describe('openaiThreads query test', () => {
|
describe('openaiThreads query test', () => {
|
||||||
it('should insert a new openai thread', async () => {
|
it('should insert a new openai thread', async () => {
|
||||||
await Promise.resolve([dbInsertOpenaiThread('7', 1), dbInsertOpenaiThread('72', 6)])
|
await Promise.all([dbInsertOpenaiThread('7', 1), dbInsertOpenaiThread('72', 6)])
|
||||||
const result = await db.select().from(openaiThreadsTable)
|
const result = await db.select().from(openaiThreadsTable)
|
||||||
expect(result).toHaveLength(2)
|
expect(result).toHaveLength(2)
|
||||||
expect(result).toMatchObject([
|
expect(result).toMatchObject([
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user