mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Fix test
This commit is contained in:
parent
50fe92ac85
commit
66430a1e8b
1 changed files with 8 additions and 2 deletions
|
|
@ -34,11 +34,17 @@ describe('Rules Resolver', () => {
|
|||
enabled: boolean,
|
||||
id?: string
|
||||
) => `
|
||||
mutation SetRule($input: SetRuleInput!) {
|
||||
mutation {
|
||||
setRule(input: {
|
||||
${id ? `id: "${id}",` : ''}
|
||||
query: "${query}",
|
||||
actions: ${JSON.stringify(actions)},
|
||||
actions: [${actions.map(
|
||||
(action) => `{
|
||||
type: ${action.type}, params: [${action.params.map(
|
||||
(param) => `"${param}"`
|
||||
)}]
|
||||
}`
|
||||
)}],
|
||||
enabled: ${enabled}
|
||||
}) {
|
||||
... on SetRuleSuccess {
|
||||
|
|
|
|||
Loading…
Reference in a new issue