diff --git a/x-pack/plugins/security_solution/common/endpoint/policy/migrations/to_v7_11.0.test.ts b/x-pack/plugins/security_solution/common/endpoint/policy/migrations/to_v7_11.0.test.ts index 76ae7953c38f0..2b2291f7ae35f 100644 --- a/x-pack/plugins/security_solution/common/endpoint/policy/migrations/to_v7_11.0.test.ts +++ b/x-pack/plugins/security_solution/common/endpoint/policy/migrations/to_v7_11.0.test.ts @@ -13,7 +13,12 @@ describe('7.11.0 Endpoint Package Policy migration', () => { it('adds malware notification checkbox and optional message', () => { const doc = { attributes: { - name: 'endpoint', + name: 'Some Policy Name', + package: { + name: 'endpoint', + title: '', + version: '', + }, id: 'endpoint', policy_id: '', enabled: true, @@ -47,7 +52,12 @@ describe('7.11.0 Endpoint Package Policy migration', () => { migration(doc, {} as SavedObjectMigrationContext) as SavedObjectUnsanitizedDoc ).toEqual({ attributes: { - name: 'endpoint', + name: 'Some Policy Name', + package: { + name: 'endpoint', + title: '', + version: '', + }, id: 'endpoint', policy_id: '', enabled: true,