Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 381ba88

Browse files
algolia-botshortcuts
andcommittedSep 10, 2024·
feat(javascript): add requester-testing package (generated)
algolia/api-clients-automation#3684 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 8051cca commit 381ba88

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+1516
-4176
lines changed
 

‎package.json

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,12 @@
1616
"test:bundle": "lerna run test:bundle --verbose --skip-nx-cache --include-dependencies"
1717
},
1818
"devDependencies": {
19-
"@babel/core": "7.25.2",
20-
"@babel/plugin-transform-class-properties": "7.25.4",
21-
"@babel/plugin-transform-runtime": "7.25.4",
22-
"@babel/preset-env": "7.25.4",
23-
"@babel/runtime": "7.25.6",
24-
"@rollup/plugin-babel": "6.0.4",
25-
"@rollup/plugin-node-resolve": "15.2.3",
26-
"@rollup/plugin-terser": "0.4.4",
27-
"@types/jest": "29.5.12",
2819
"@types/node": "22.5.1",
29-
"@types/rollup-plugin-node-globals": "1.4.4",
3020
"@types/semver": "7.5.8",
3121
"bundlesize": "0.18.2",
3222
"execa": "9.3.1",
3323
"lerna": "8.1.8",
3424
"rollup": "4.21.2",
35-
"rollup-plugin-node-globals": "1.4.0",
36-
"rollup-plugin-typescript2": "0.36.0",
3725
"semver": "7.6.3",
3826
"typescript": "5.5.4"
3927
},
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1+
import { test, expect } from 'vitest';
2+
13
import { algoliasearch, apiClientVersion } from '../builds/browser';
24

3-
describe('bundle', () => {
4-
const client = algoliasearch('APP_ID', 'API_KEY');
5+
const client = algoliasearch('APP_ID', 'API_KEY');
56

6-
it('sets the ua', () => {
7-
expect(client.transporter.algoliaAgent).toEqual({
8-
add: expect.any(Function),
9-
value: expect.stringContaining(
10-
`Algolia for JavaScript (${apiClientVersion}); Search (${apiClientVersion}); Browser`,
11-
),
12-
});
7+
test('sets the ua', () => {
8+
expect(client.transporter.algoliaAgent).toEqual({
9+
add: expect.any(Function),
10+
value: expect.stringContaining(
11+
`Algolia for JavaScript (${apiClientVersion}); Search (${apiClientVersion}); Browser`,
12+
),
1313
});
1414
});

0 commit comments

Comments
 (0)
Please sign in to comment.