Skip to content

Commit

Permalink
Fix reject test for xata-http
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriiSherman committed Mar 19, 2024
1 parent 9448a16 commit 3216719
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integration-tests/tests/xata-http.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2317,7 +2317,7 @@ test('insert undefined', async () => {
sql`create table ${users} (id serial not null primary key, name text)`,
);

await expect(async () => await db.insert(users).values({ name: undefined })).rejects.not.toThrowError();
expect(async () => await db.insert(users).values({ name: undefined })).not.toThrowError();

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

0 comments on commit 3216719

Please sign in to comment.