From aee43b31ad8ce79a9710d773fe64807bd698361b Mon Sep 17 00:00:00 2001 From: Candace Park Date: Mon, 19 Oct 2020 17:36:10 -0400 Subject: [PATCH] fix test --- .../endpoint/policy/migrations/to_v7_11.0.test.ts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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,