Skip to content

Commit a0011a5

Browse files
committed
chore: unit
1 parent e2cfd0d commit a0011a5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ describe('api', () => {
146146
describe('bridge methods', () => {
147147
test('throws when missing transformation.region', () => {
148148
//@ts-expect-error
149-
expect(() => algoliasearch('APP_ID', 'API_KEY', { transformation: { taskID: 'foo' } })).toThrow(
149+
expect(() => algoliasearch('APP_ID', 'API_KEY', { transformation: { } })).toThrow(
150150
'`region` must be provided when leveraging the transformation pipeline',
151151
);
152152
});
@@ -159,7 +159,7 @@ describe('api', () => {
159159
waitForTasks: true,
160160
}),
161161
).rejects.toThrow(
162-
'`transformation.taskID` and `transformation.region` must be provided at client instantiation before calling this method.',
162+
'`transformation.region` must be provided at client instantiation before calling this method.',
163163
);
164164

165165
await expect(
@@ -169,7 +169,7 @@ describe('api', () => {
169169
waitForTasks: true,
170170
}),
171171
).rejects.toThrow(
172-
'`transformation.taskID` and `transformation.region` must be provided at client instantiation before calling this method.',
172+
'`transformation.region` must be provided at client instantiation before calling this method.',
173173
);
174174
});
175175

0 commit comments

Comments
 (0)