Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hop-dev committed Feb 8, 2022
1 parent 67ee303 commit e2f9ed6
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ describe('createAgentPolicyWithPackages', () => {
expect(response.id).toEqual('fleet-server-policy');
expect(response.is_default_fleet_server).toBe(true);
expect(mockedBulkInstallPackages).toHaveBeenCalledWith({
savedObjectsClient: soRepoMock,
savedObjectsRepo: soRepoMock,
esClient: esClientMock,
packagesToInstall: ['fleet_server', 'system', 'elastic_agent'],
spaceId: 'default',
Expand Down Expand Up @@ -148,7 +148,7 @@ describe('createAgentPolicyWithPackages', () => {

expect(response.id).toEqual('new_id');
expect(mockedBulkInstallPackages).toHaveBeenCalledWith({
savedObjectsClient: soRepoMock,
savedObjectsRepo: soRepoMock,
esClient: esClientMock,
packagesToInstall: ['fleet_server'],
spaceId: 'default',
Expand All @@ -171,7 +171,7 @@ describe('createAgentPolicyWithPackages', () => {

expect(response.id).toEqual('new_id');
expect(mockedBulkInstallPackages).toHaveBeenCalledWith({
savedObjectsClient: soRepoMock,
savedObjectsRepo: soRepoMock,
esClient: esClientMock,
packagesToInstall: ['system'],
spaceId: 'default',
Expand All @@ -196,7 +196,7 @@ describe('createAgentPolicyWithPackages', () => {

expect(response.id).toEqual('new_id');
expect(mockedBulkInstallPackages).toHaveBeenCalledWith({
savedObjectsClient: soRepoMock,
savedObjectsRepo: soRepoMock,
esClient: esClientMock,
packagesToInstall: ['system', 'elastic_agent'],
spaceId: 'default',
Expand Down

0 comments on commit e2f9ed6

Please sign in to comment.