Skip to content

Commit e2cfd0d

Browse files
committed
chore: unit
1 parent 435ce2b commit e2cfd0d

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,6 @@ describe('api', () => {
151151
);
152152
});
153153

154-
test('throws when missing transformation.taskID', () => {
155-
//@ts-expect-error
156-
expect(() => algoliasearch('APP_ID', 'API_KEY', { transformation: { region: 'us' } })).toThrow(
157-
'`taskID` must be provided when leveraging the transformation pipeline',
158-
);
159-
});
160-
161154
test('throws when calling the transformation methods without init parameters', async () => {
162155
await expect(
163156
client.saveObjectsWithTransformation({
@@ -183,7 +176,7 @@ describe('api', () => {
183176
test('exposes the transformation methods at the root of the client', async () => {
184177
const ingestionClient = algoliasearch('APP_ID', 'API_KEY', {
185178
requester: browserEchoRequester(),
186-
transformation: { taskID: 'foo', region: 'us' },
179+
transformation: { region: 'us' },
187180
});
188181

189182
expect(ingestionClient.saveObjectsWithTransformation).not.toBeUndefined();

0 commit comments

Comments
 (0)