We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7d65ba commit 8e6d81aCopy full SHA for 8e6d81a
packages/data-connect/test/unit/dataconnect.test.ts
@@ -81,6 +81,12 @@ describe('Data Connect Test', () => {
81
expect(parsedHost.host).to.eq(host);
82
expect(parsedHost.sslEnabled).to.be.false;
83
});
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
+ });
90
it('should throw for non-http protocols', async () => {
91
const host = 'ftp://localhost';
92
expect(() => parseOptions(host)).to.throw(
0 commit comments