Skip to content

Commit 8e6d81a

Browse files
committed
Added extra test
1 parent f7d65ba commit 8e6d81a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/data-connect/test/unit/dataconnect.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ describe('Data Connect Test', () => {
8181
expect(parsedHost.host).to.eq(host);
8282
expect(parsedHost.sslEnabled).to.be.false;
8383
});
84+
it('should parse ipv6 localhost addresses correctly', async () => {
85+
const host = '[::1]:8080';
86+
const parsedHost = parseOptions(host);
87+
expect(parsedHost.host).to.eq(host);
88+
expect(parsedHost.sslEnabled).to.be.false;
89+
});
8490
it('should throw for non-http protocols', async () => {
8591
const host = 'ftp://localhost';
8692
expect(() => parseOptions(host)).to.throw(

0 commit comments

Comments
 (0)