Skip to content

Commit e9549dd

Browse files
add more tests
Signed-off-by: Vikrant Puppala <vikrant.puppala@databricks.com>
1 parent 08988eb commit e9549dd

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/unit/connection/connections/HttpConnection.test.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,22 @@ describe('HttpConnection.connect', () => {
150150
input: { host: 'xyz.com/', path: undefined },
151151
expected: 'https://xyz.com:443/',
152152
},
153+
{
154+
input: { host: 'xyz.com', path: 'sql/v1' },
155+
expected: 'https://xyz.com:443/sql/v1',
156+
},
157+
{
158+
input: { host: 'xyz.com/', path: 'sql/v1' },
159+
expected: 'https://xyz.com:443/sql/v1',
160+
},
161+
{
162+
input: { host: 'xyz.com', path: 'sql/v1/' },
163+
expected: 'https://xyz.com:443/sql/v1',
164+
},
165+
{
166+
input: { host: 'https://xyz.com', path: 'sql/v1' },
167+
expected: 'https://xyz.com:443/sql/v1',
168+
},
153169
];
154170

155171
for (const testCase of testCases) {

0 commit comments

Comments
 (0)