Skip to content

Commit f3b826a

Browse files
committed
Included ipv6 parsing
1 parent ba0b1bd commit f3b826a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,11 @@ describe('Data Connect Test', () => {
7575
expect(parsedHost.host).to.eq('localhost');
7676
expect(parsedHost.sslEnabled).to.be.true;
7777
});
78+
it('should parse ipv6 addresses correctly', async () => {
79+
const host = '2001:0db8:85a3:0000:0000:8a2e:0370:7334';
80+
const parsedHost = parseOptions(host);
81+
expect(parsedHost.host).to.eq(host);
82+
expect(parsedHost.sslEnabled).to.be.false;
83+
});
7884
});
85+

0 commit comments

Comments
 (0)