From 026cbeb4c9c7efb96aecfb95bb128bc5c311a046 Mon Sep 17 00:00:00 2001 From: Haroen Viaene Date: Tue, 24 Dec 2024 13:35:25 +0100 Subject: [PATCH] xpose --- .../algoliasearch/__tests__/algoliasearch.common.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/clients/algoliasearch-client-javascript/packages/algoliasearch/__tests__/algoliasearch.common.test.ts b/clients/algoliasearch-client-javascript/packages/algoliasearch/__tests__/algoliasearch.common.test.ts index 141d0ec85d..ffdcf3b9a0 100644 --- a/clients/algoliasearch-client-javascript/packages/algoliasearch/__tests__/algoliasearch.common.test.ts +++ b/clients/algoliasearch-client-javascript/packages/algoliasearch/__tests__/algoliasearch.common.test.ts @@ -20,6 +20,10 @@ describe('api', () => { expect(client.appId).toEqual('APP_ID'); }); + test('exposes the `apiKey` currently in use at the root of the API', () => { + expect(client.apiKey).toEqual('API_KEY'); + }); + test('provides a `clearCache` method', () => { expect(client.clearCache).not.toBeUndefined(); expect(() => client.clearCache()).not.toThrow();