Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
juliaElastic committed Oct 25, 2021
1 parent c77d7f6 commit ee2c916
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions x-pack/plugins/fleet/server/services/package_policy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -613,8 +613,7 @@ describe('Package policy service', () => {
savedObjectsClient,
elasticsearchClient,
'the-package-policy-id',
createPackagePolicyMock(),
'current-version'
createPackagePolicyMock()
)
).rejects.toThrow('Saved object [abc/123] conflict');
});
Expand Down Expand Up @@ -734,8 +733,7 @@ describe('Package policy service', () => {
savedObjectsClient,
elasticsearchClient,
'the-package-policy-id',
{ ...mockPackagePolicy, inputs: inputsUpdate },
'current-version'
{ ...mockPackagePolicy, inputs: inputsUpdate }
);

const [modifiedInput] = result.inputs;
Expand Down Expand Up @@ -858,8 +856,7 @@ describe('Package policy service', () => {
savedObjectsClient,
elasticsearchClient,
'the-package-policy-id',
{ ...mockPackagePolicy, inputs: inputsUpdate },
'current-version'
{ ...mockPackagePolicy, inputs: inputsUpdate }
);

const [modifiedInput] = result.inputs;
Expand Down Expand Up @@ -918,8 +915,7 @@ describe('Package policy service', () => {
savedObjectsClient,
elasticsearchClient,
'the-package-policy-id',
{ ...mockPackagePolicy, inputs: [] },
'current-version'
{ ...mockPackagePolicy, inputs: [] }
);

expect(result.elasticsearch).toMatchObject({ privileges: { cluster: ['monitor'] } });
Expand Down

0 comments on commit ee2c916

Please sign in to comment.