Skip to content

Commit 026cbeb

Browse files
committed
xpose
1 parent 8fdf728 commit 026cbeb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clients/algoliasearch-client-javascript/packages/algoliasearch/__tests__/algoliasearch.common.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ describe('api', () => {
2020
expect(client.appId).toEqual('APP_ID');
2121
});
2222

23+
test('exposes the `apiKey` currently in use at the root of the API', () => {
24+
expect(client.apiKey).toEqual('API_KEY');
25+
});
26+
2327
test('provides a `clearCache` method', () => {
2428
expect(client.clearCache).not.toBeUndefined();
2529
expect(() => client.clearCache()).not.toThrow();

0 commit comments

Comments
 (0)