Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
YulNaumenko committed Oct 26, 2021
1 parent 8cf9415 commit ecb85bd
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions x-pack/plugins/actions/server/actions_client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1575,17 +1575,9 @@ describe('update()', () => {
name: 'My action type',
minimumLicenseRequired: 'basic',
validate: {
config: schema.object({
param1: schema.string(),
}),
connector: schema.object({
config: schema.object({
param1: schema.string(),
}),
secrets: schema.object({
param2: schema.string(),
}),
}),
connector: () => {
return '[param1] is required';
},
},
executor,
});
Expand All @@ -1607,7 +1599,7 @@ describe('update()', () => {
},
})
).rejects.toThrowErrorMatchingInlineSnapshot(
`"error validating action type config: [param1]: expected value of type [string] but got [undefined]"`
`"error validating action type connector: [param1] is required"`
);
});

Expand Down

0 comments on commit ecb85bd

Please sign in to comment.