Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
parkiino committed Oct 19, 2020
1 parent a7add0d commit aee43b3
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -47,7 +52,12 @@ describe('7.11.0 Endpoint Package Policy migration', () => {
migration(doc, {} as SavedObjectMigrationContext) as SavedObjectUnsanitizedDoc<PackagePolicy>
).toEqual({
attributes: {
name: 'endpoint',
name: 'Some Policy Name',
package: {
name: 'endpoint',
title: '',
version: '',
},
id: 'endpoint',
policy_id: '',
enabled: true,
Expand Down

0 comments on commit aee43b3

Please sign in to comment.