Skip to content

Commit

Permalink
should not throw generic error message
Browse files Browse the repository at this point in the history
  • Loading branch information
invisal committed Oct 14, 2024
1 parent 042989c commit 0949040
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/connections/connection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,12 @@ describe('Database Connection', () => {
.select()
.from(`${DEFAULT_SCHEMA}.non_existing_table`)
.query();

expect(error).toBeTruthy();

// It should contain free text error message, instead of just
// some generic error message
expect(error?.message).toContain('non_existing_table');
});

test('Update data', async () => {
Expand Down

0 comments on commit 0949040

Please sign in to comment.