Skip to content

Commit aee43b3

Browse files
committed
fix test
1 parent a7add0d commit aee43b3

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

x-pack/plugins/security_solution/common/endpoint/policy/migrations/to_v7_11.0.test.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ describe('7.11.0 Endpoint Package Policy migration', () => {
1313
it('adds malware notification checkbox and optional message', () => {
1414
const doc = {
1515
attributes: {
16-
name: 'endpoint',
16+
name: 'Some Policy Name',
17+
package: {
18+
name: 'endpoint',
19+
title: '',
20+
version: '',
21+
},
1722
id: 'endpoint',
1823
policy_id: '',
1924
enabled: true,
@@ -47,7 +52,12 @@ describe('7.11.0 Endpoint Package Policy migration', () => {
4752
migration(doc, {} as SavedObjectMigrationContext) as SavedObjectUnsanitizedDoc<PackagePolicy>
4853
).toEqual({
4954
attributes: {
50-
name: 'endpoint',
55+
name: 'Some Policy Name',
56+
package: {
57+
name: 'endpoint',
58+
title: '',
59+
version: '',
60+
},
5161
id: 'endpoint',
5262
policy_id: '',
5363
enabled: true,

0 commit comments

Comments
 (0)