Private fn doesnt not allow acces method, change into expect unit test

Signed-off-by: armandocomellas1 <cgarmando@google.com>
This commit is contained in:
armandocomellas1
2024-01-30 21:25:23 -06:00
parent 136d1666ad
commit e749ed8aad
@@ -497,11 +497,9 @@ describe('GkeClusterLocator', () => {
configs,
refreshIntervals,
);
const getClientMethod = getHeaders.client._opts;
const getKeyName = getClientMethod.hasOwnProperty('libName');
const getKeyVersion = getClientMethod.hasOwnProperty('libVersion');
expect(getKeyName).toBe(true);
expect(getKeyVersion).toBe(true);
expect(getHeaders.client._opts).toHaveProperty('libName');
expect(getHeaders.client._opts).toHaveProperty('libVersion');
});
});
});