add an unit test to check if those are theres

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