Skip to content

Commit

Permalink
Fix xata tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriiSherman committed Mar 27, 2024
1 parent 3e821c4 commit f6de0d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration-tests/tests/xata-http.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2334,8 +2334,8 @@ test('update undefined', async () => {
sql`create table ${users} (id serial not null primary key, name text)`,
);

await expect(async () => await db.update(users).set({ name: undefined })).rejects.toThrowError();
expect(async () => await db.update(users).set({ id: 1, name: undefined })).not.toThrowError();
expect(() => db.update(users).set({ name: undefined })).toThrowError();
await expect(db.update(users).set({ id: 1, name: undefined })).resolves.not.toThrowError();

await db.execute(sql`drop table ${users}`);
});
Expand Down

0 comments on commit f6de0d5

Please sign in to comment.