Skip to content

Commit

Permalink
fix(test): fix typo in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerald Baulig committed Jul 31, 2024
1 parent 9411d70 commit ddd5b6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -908,11 +908,11 @@ export class OrderingService
if (response.operation_status?.code !== 200) {
throw response.operation_status;
}
else if (response.items?.length !== ids.length) {
else if (response.items?.length < ids.length) {
throw this.createOperationStatusCode(
this.operation_status_codes.ITEMS_MISSING,
entity,
ids.join(', '),
`[${ids.join(', ')}]`,
);
}
else {
Expand Down
4 changes: 2 additions & 2 deletions test/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ const contactPoints = [
description: 'A mocked Contact Point for testing',
email: '[email protected]',
localeId: 'localization_1',
physicalAddressId: businessAddresses[0].address?.id,
physicalAddressId: businessAddresses[0].address!.id,
telephone: '0123456789',
timezoneId: 'timezone_1',
website: 'www.shop.com',
Expand Down Expand Up @@ -731,7 +731,7 @@ export const rules = {
private: {
userId: 'user_1',
contactPointIds: [
'cantactPoint_1'
'contactPoint_1'
],
},
},
Expand Down

0 comments on commit ddd5b6d

Please sign in to comment.