Skip to content

Commit

Permalink
fix upsert unit test
Browse files Browse the repository at this point in the history
fix import
  • Loading branch information
Dosant committed May 24, 2024
1 parent 988596a commit 70e73be
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import {
createConflictErrorPayload,
createGenericNotFoundErrorPayload,
updateSuccess,
mockTimestampFieldsWithCreated,
} from '../../test_helpers/repository.test.common';

describe('#update', () => {
Expand Down Expand Up @@ -319,7 +320,7 @@ describe('#update', () => {
const expected = {
'index-pattern': { description: 'bar', title: 'foo' },
type: 'index-pattern',
...mockTimestampFields,
...mockTimestampFieldsWithCreated,
};
expect(
(client.create.mock.calls[0][0] as estypes.CreateRequest<SavedObjectsRawDocSource>).body!
Expand Down Expand Up @@ -352,7 +353,7 @@ describe('#update', () => {
multiNamespaceIsolatedType: { description: 'bar', title: 'foo' },
namespaces: ['default'],
type: 'multiNamespaceIsolatedType',
...mockTimestampFields,
...mockTimestampFieldsWithCreated,
};
expect(
(client.create.mock.calls[0][0] as estypes.CreateRequest<SavedObjectsRawDocSource>).body!
Expand Down

0 comments on commit 70e73be

Please sign in to comment.