Skip to content

Commit cc01698

Browse files
chore: assert node helpers (#3689) (generated) [skip ci]
Co-authored-by: Clément Vannicatte <[email protected]>
1 parent d39b877 commit cc01698

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ test('forwards node search helpers', () => {
1515
expect(client.generateSecuredApiKey).not.toBeUndefined();
1616
expect(client.getSecuredApiKeyRemainingValidity).not.toBeUndefined();
1717
expect(() => {
18-
const resp = client.generateSecuredApiKey({parentApiKey: 'foo', restrictions: {validUntil: 200}})
19-
client.getSecuredApiKeyRemainingValidity({securedApiKey: resp})
18+
const resp = client.generateSecuredApiKey({ parentApiKey: 'foo', restrictions: { validUntil: 200 } });
19+
client.getSecuredApiKeyRemainingValidity({ securedApiKey: resp });
2020
}).not.toThrow();
2121
});

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ test('forwards node search helpers', () => {
1717
expect(client.generateSecuredApiKey).not.toBeUndefined();
1818
expect(client.getSecuredApiKeyRemainingValidity).not.toBeUndefined();
1919
expect(() => {
20-
const resp = client.generateSecuredApiKey({parentApiKey: 'foo', restrictions: {validUntil: 200}})
21-
client.getSecuredApiKeyRemainingValidity({securedApiKey: resp})
20+
const resp = client.generateSecuredApiKey({ parentApiKey: 'foo', restrictions: { validUntil: 200 } });
21+
client.getSecuredApiKeyRemainingValidity({ securedApiKey: resp });
2222
}).not.toThrow();
2323
});

0 commit comments

Comments
 (0)