Skip to content

Commit

Permalink
fixed jest
Browse files Browse the repository at this point in the history
  • Loading branch information
YulNaumenko committed Oct 29, 2020
1 parent 58f11e9 commit 533e522
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions x-pack/plugins/alerts/server/task_runner/task_runner.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ describe('Task Runner', () => {
},
taskRunnerFactoryInitializerParams
);
alertsClient.get.mockResolvedValueOnce(mockedAlertTypeSavedObject);
encryptedSavedObjectsClient.getDecryptedAsInternalUser.mockResolvedValueOnce({
alertsClient.get.mockResolvedValue(mockedAlertTypeSavedObject);
encryptedSavedObjectsClient.getDecryptedAsInternalUser.mockResolvedValue({
id: '1',
type: 'alert',
attributes: {
Expand Down Expand Up @@ -210,8 +210,8 @@ describe('Task Runner', () => {
mockedTaskInstance,
taskRunnerFactoryInitializerParams
);
alertsClient.get.mockResolvedValueOnce(mockedAlertTypeSavedObject);
encryptedSavedObjectsClient.getDecryptedAsInternalUser.mockResolvedValueOnce({
alertsClient.get.mockResolvedValue(mockedAlertTypeSavedObject);
encryptedSavedObjectsClient.getDecryptedAsInternalUser.mockResolvedValue({
id: '1',
type: 'alert',
attributes: {
Expand Down Expand Up @@ -338,7 +338,7 @@ describe('Task Runner', () => {
mockedTaskInstance,
taskRunnerFactoryInitializerParams
);
alertsClient.get.mockResolvedValueOnce(mockedAlertTypeSavedObject);
alertsClient.get.mockResolvedValue(mockedAlertTypeSavedObject);
encryptedSavedObjectsClient.getDecryptedAsInternalUser.mockResolvedValueOnce({
id: '1',
type: 'alert',
Expand Down Expand Up @@ -503,8 +503,8 @@ describe('Task Runner', () => {
},
taskRunnerFactoryInitializerParams
);
alertsClient.get.mockResolvedValueOnce(mockedAlertTypeSavedObject);
encryptedSavedObjectsClient.getDecryptedAsInternalUser.mockResolvedValueOnce({
alertsClient.get.mockResolvedValue(mockedAlertTypeSavedObject);
encryptedSavedObjectsClient.getDecryptedAsInternalUser.mockResolvedValue({
id: '1',
type: 'alert',
attributes: {
Expand Down Expand Up @@ -611,7 +611,7 @@ describe('Task Runner', () => {
mockedTaskInstance,
taskRunnerFactoryInitializerParams
);
alertsClient.get.mockResolvedValueOnce(mockedAlertTypeSavedObject);
alertsClient.get.mockResolvedValue(mockedAlertTypeSavedObject);
encryptedSavedObjectsClient.getDecryptedAsInternalUser.mockResolvedValueOnce({
id: '1',
type: 'alert',
Expand Down Expand Up @@ -639,7 +639,7 @@ describe('Task Runner', () => {
mockedTaskInstance,
taskRunnerFactoryInitializerParams
);
alertsClient.get.mockResolvedValueOnce(mockedAlertTypeSavedObject);
alertsClient.get.mockResolvedValue(mockedAlertTypeSavedObject);
encryptedSavedObjectsClient.getDecryptedAsInternalUser.mockResolvedValueOnce({
id: '1',
type: 'alert',
Expand Down Expand Up @@ -675,7 +675,7 @@ describe('Task Runner', () => {
mockedTaskInstance,
taskRunnerFactoryInitializerParams
);
alertsClient.get.mockResolvedValueOnce(mockedAlertTypeSavedObject);
alertsClient.get.mockResolvedValue(mockedAlertTypeSavedObject);
encryptedSavedObjectsClient.getDecryptedAsInternalUser.mockResolvedValueOnce({
id: '1',
type: 'alert',
Expand Down Expand Up @@ -714,7 +714,7 @@ describe('Task Runner', () => {
taskRunnerFactoryInitializerParams
);

alertsClient.get.mockResolvedValueOnce(mockedAlertTypeSavedObject);
alertsClient.get.mockResolvedValue(mockedAlertTypeSavedObject);
encryptedSavedObjectsClient.getDecryptedAsInternalUser.mockResolvedValueOnce({
id: '1',
type: 'alert',
Expand Down Expand Up @@ -776,7 +776,7 @@ describe('Task Runner', () => {
taskRunnerFactoryInitializerParams
);

alertsClient.get.mockResolvedValueOnce(mockedAlertTypeSavedObject);
alertsClient.get.mockResolvedValue(mockedAlertTypeSavedObject);

const runnerResult = await taskRunner.run();

Expand All @@ -801,8 +801,8 @@ describe('Task Runner', () => {
taskRunnerFactoryInitializerParams
);

alertsClient.get.mockResolvedValueOnce(mockedAlertTypeSavedObject);
encryptedSavedObjectsClient.getDecryptedAsInternalUser.mockResolvedValueOnce({
alertsClient.get.mockResolvedValue(mockedAlertTypeSavedObject);
encryptedSavedObjectsClient.getDecryptedAsInternalUser.mockResolvedValue({
id: '1',
type: 'alert',
attributes: {
Expand Down Expand Up @@ -834,7 +834,7 @@ describe('Task Runner', () => {
taskRunnerFactoryInitializerParams
);

encryptedSavedObjectsClient.getDecryptedAsInternalUser.mockResolvedValueOnce({
encryptedSavedObjectsClient.getDecryptedAsInternalUser.mockResolvedValue({
id: '1',
type: 'alert',
attributes: {
Expand Down Expand Up @@ -875,8 +875,8 @@ describe('Task Runner', () => {
taskRunnerFactoryInitializerParams
);

alertsClient.get.mockResolvedValueOnce(mockedAlertTypeSavedObject);
encryptedSavedObjectsClient.getDecryptedAsInternalUser.mockResolvedValueOnce({
alertsClient.get.mockResolvedValue(mockedAlertTypeSavedObject);
encryptedSavedObjectsClient.getDecryptedAsInternalUser.mockResolvedValue({
id: '1',
type: 'alert',
attributes: {
Expand All @@ -903,7 +903,7 @@ describe('Task Runner', () => {
taskRunnerFactoryInitializerParams
);

encryptedSavedObjectsClient.getDecryptedAsInternalUser.mockResolvedValueOnce({
encryptedSavedObjectsClient.getDecryptedAsInternalUser.mockResolvedValue({
id: '1',
type: 'alert',
attributes: {
Expand Down

0 comments on commit 533e522

Please sign in to comment.