Private fn doesnt not allow acces method, change into expect unit test
Signed-off-by: armandocomellas1 <cgarmando@google.com>
This commit is contained in:
@@ -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');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user