Skip to content

Commit

Permalink
fix(inventory-entry): adjust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosCortizasCT committed Dec 5, 2024
1 parent 69dba8b commit 69950ab
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions models/inventory-entry/src/builders.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('InventoryEntry model builders', () => {
restockableInDays: expect.any(Number),
availableQuantity: expect.any(Number),
expectedDelivery: expect.any(String),
supplyChannel: expect.any(Object),
supplyChannel: null,
custom: null,
})
);
Expand All @@ -45,17 +45,8 @@ describe('InventoryEntry model builders', () => {
restockableInDays: expect.any(Number),
availableQuantity: expect.any(Number),
expectedDelivery: expect.any(String),
supplyChannel: expect.objectContaining({
__typename: 'Channel',
address: expect.objectContaining({
country: expect.any(String),
}),
}),
supplyChannelRef: expect.objectContaining({
__typename: 'Reference',
id: expect.any(String),
typeId: 'channel',
}),
supplyChannel: null,
supplyChannelRef: null,
custom: null,
__typename: 'InventoryEntry',
})
Expand All @@ -81,7 +72,7 @@ describe('InventoryEntry model compatibility builders', () => {
restockableInDays: expect.any(Number),
availableQuantity: expect.any(Number),
expectedDelivery: expect.any(String),
supplyChannel: expect.any(Object),
supplyChannel: null,
custom: null,
})
);
Expand All @@ -104,9 +95,8 @@ describe('InventoryEntry model compatibility builders', () => {
quantityOnStock: expect.any(Number),
restockableInDays: expect.any(Number),
expectedDelivery: expect.any(String),
supplyChannel: expect.objectContaining({
__typename: 'Channel',
}),
supplyChannel: null,
supplyChannelRef: null,
custom: null,
})
);
Expand Down

0 comments on commit 69950ab

Please sign in to comment.