Skip to content

Commit 2a02c9e

Browse files
committed
Added back tests
1 parent cb29de0 commit 2a02c9e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

packages/data-connect/src/api/DataConnect.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ export function areTransportOptionsEqual(
223223
): boolean {
224224
return (
225225
transportOptions1.host === transportOptions2.host &&
226+
transportOptions1.port === transportOptions2.port &&
226227
transportOptions1.sslEnabled === transportOptions2.sslEnabled
227228
);
228229
}

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@ describe('Transport Options', () => {
2929
it('should return false if transport options are not equal', () => {
3030
const transportOptions1: TransportOptions = {
3131
host: 'h',
32+
port: 1,
3233
sslEnabled: false
3334
};
3435
const transportOptions2: TransportOptions = {
3536
host: 'h2',
37+
port: 2,
3638
sslEnabled: false
3739
};
3840
expect(
@@ -42,9 +44,11 @@ describe('Transport Options', () => {
4244
it('should return true if transport options are equal', () => {
4345
const transportOptions1: TransportOptions = {
4446
host: 'h',
47+
port: 1,
4548
sslEnabled: false
4649
};
4750
const transportOptions2: TransportOptions = {
51+
port: 1,
4852
host: 'h',
4953
sslEnabled: false
5054
};

0 commit comments

Comments
 (0)