({ comments, login = "github-actions[bot]", listThrows = false, authThrows = false } = {})
| 4006 | } |
| 4007 | |
| 4008 | function ckGithub({ comments, login = "github-actions[bot]", listThrows = false, authThrows = false } = {}) { |
| 4009 | return { |
| 4010 | rest: { |
| 4011 | users: { |
| 4012 | getAuthenticated: async () => { |
| 4013 | if (authThrows) throw new Error("auth unavailable"); |
| 4014 | return { data: { login } }; |
| 4015 | }, |
| 4016 | }, |
| 4017 | issues: { |
| 4018 | listComments: async () => { |
| 4019 | if (listThrows) throw new Error("listComments 503"); |
| 4020 | return { data: comments || [] }; |
| 4021 | }, |
| 4022 | }, |
| 4023 | }, |
| 4024 | }; |
| 4025 | } |
| 4026 | |
| 4027 | function ckArgs(over = {}) { |
| 4028 | return Object.assign( |
no outgoing calls
no test coverage detected