(tags: BlockTagSelection)
| 55 | } |
| 56 | |
| 57 | const getParams = (tags: BlockTagSelection): Params => { |
| 58 | const blocks: string[] = []; |
| 59 | const unblocks: string[] = []; |
| 60 | |
| 61 | if (tags) { |
| 62 | Object.entries(tags).forEach(([tag, shouldBlock]) => { |
| 63 | const container = shouldBlock ? blocks : unblocks; |
| 64 | container.push(tag); |
| 65 | }); |
| 66 | } |
| 67 | |
| 68 | return { blocks, unblocks }; |
| 69 | }; |
| 70 | |
| 71 | const ignoredCall = () => Promise.resolve({ successful: true }); |
| 72 |
no test coverage detected