Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

Commit 4ebb763

Browse files
committed
fixng snowflake test case
1 parent 49991af commit 4ebb763

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/connections/connection.test.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,19 @@ describe('Database Connection', () => {
4141

4242
const sql =
4343
process.env.CONNECTION_TYPE === 'mysql'
44-
? 'SELECT CONCAT(:hello, :world) AS TESTING_WORD'
45-
: 'SELECT (:hello || :world) AS TESTING_WORD';
44+
? 'SELECT CONCAT(:hello, :world) AS testing_word'
45+
: 'SELECT (:hello || :world) AS testing_word';
4646

4747
const { data } = await db.raw(sql, {
4848
hello: 'hello ',
4949
world: 'world',
5050
});
5151

52-
expect(data).toEqual([{ TESTING_WORD: 'hello world' }]);
52+
if (process.env.CONNECTION_TYPE === 'snowflake') {
53+
expect(data).toEqual([{ TESTING_WORD: 'hello world' }]);
54+
} else {
55+
expect(data).toEqual([{ testing_word: 'hello world' }]);
56+
}
5357
});
5458

5559
test('Support positional placeholder', async () => {

0 commit comments

Comments
 (0)