Skip to content

Commit

Permalink
fix: add objectContaining to message nodes into domains node graph
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosallexandre committed Nov 17, 2024
1 parent 47750a1 commit 28e1a88
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/utils/__tests__/domains/node-graph.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('Domains NodeGraph', () => {
id: 'OrderPlaced-0.0.1',
sourcePosition: 'right',
targetPosition: 'left',
data: { mode: 'simple', message: mockEvents[0] },
data: { mode: 'simple', message: expect.objectContaining({ id: mockEvents[0].id }) },
position: { x: expect.any(Number), y: expect.any(Number) },
type: 'events',
};
Expand Down Expand Up @@ -95,7 +95,7 @@ describe('Domains NodeGraph', () => {
id: 'PlaceOrder-1.7.7',
sourcePosition: 'right',
targetPosition: 'left',
data: { mode: 'simple', message: mockCommands[2] },
data: { mode: 'simple', message: expect.objectContaining({ id: mockCommands[2].id }) },
position: { x: expect.any(Number), y: expect.any(Number) },
type: 'commands',
},
Expand All @@ -114,7 +114,7 @@ describe('Domains NodeGraph', () => {
id: 'OrderPlaced-0.0.1',
sourcePosition: 'right',
targetPosition: 'left',
data: { mode: 'simple', message: mockEvents[0] },
data: { mode: 'simple', message: expect.objectContaining({ id: mockEvents[0].id }) },
position: { x: expect.any(Number), y: expect.any(Number) },
type: 'events',
},
Expand All @@ -134,31 +134,31 @@ describe('Domains NodeGraph', () => {
id: 'PaymentPaid-0.0.1',
sourcePosition: 'right',
targetPosition: 'left',
data: { mode: 'simple', message: mockEvents[1] },
data: { mode: 'simple', message: expect.objectContaining({ id: mockEvents[1].id }) },
position: { x: expect.any(Number), y: expect.any(Number) },
type: 'events',
},
{
id: 'PaymentPaid-0.0.2',
sourcePosition: 'right',
targetPosition: 'left',
data: { mode: 'simple', message: mockEvents[2] },
data: { mode: 'simple', message: expect.objectContaining({ id: mockEvents[2].id }) },
position: { x: expect.any(Number), y: expect.any(Number) },
type: 'events',
},
{
id: 'PaymentRefunded-1.0.0',
sourcePosition: 'right',
targetPosition: 'left',
data: { mode: 'simple', message: mockEvents[4] },
data: { mode: 'simple', message: expect.objectContaining({ id: mockEvents[4].id }) },
position: { x: expect.any(Number), y: expect.any(Number) },
type: 'events',
},
{
id: 'PaymentFailed-1.0.0',
sourcePosition: 'right',
targetPosition: 'left',
data: { mode: 'simple', message: mockEvents[6] },
data: { mode: 'simple', message: expect.objectContaining({ id: mockEvents[6].id }) },
position: { x: expect.any(Number), y: expect.any(Number) },
type: 'events',
},
Expand Down

0 comments on commit 28e1a88

Please sign in to comment.