Skip to content

Commit

Permalink
update jest test
Browse files Browse the repository at this point in the history
  • Loading branch information
dominiqueclarke committed Oct 28, 2022
1 parent 93681bf commit 887f0c0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ describe('syncEditedMonitor', () => {
} as unknown as SyntheticsMonitor;

const previousMonitor = {
id: 'saved-obj-id',
id: '7af7e2f0-d5dc-11ec-87ac-bdfdb894c53d',
attributes: { name: editedMonitor.name, locations: [] } as any,
type: 'synthetics-monitor',
references: [],
Expand Down Expand Up @@ -109,14 +109,14 @@ describe('syncEditedMonitor', () => {
expect(syntheticsService.editConfig).toHaveBeenCalledWith(
expect.arrayContaining([
expect.objectContaining({
id: 'saved-obj-id',
id: '7af7e2f0-d5dc-11ec-87ac-bdfdb894c53d',
}),
])
);

expect(serverMock.authSavedObjectsClient?.update).toHaveBeenCalledWith(
'synthetics-monitor',
'saved-obj-id',
'7af7e2f0-d5dc-11ec-87ac-bdfdb894c53d',
expect.objectContaining({
enabled: true,
})
Expand Down

0 comments on commit 887f0c0

Please sign in to comment.