(payload, label)
| 2011 | } |
| 2012 | |
| 2013 | function assertJson(payload, label) { |
| 2014 | if (!payload || typeof payload !== "object") { |
| 2015 | throw new Error(`${label} did not return a JSON object`); |
| 2016 | } |
| 2017 | } |
| 2018 | |
| 2019 | function assertPng(filePath) { |
| 2020 | assertPngBuffer(fs.readFileSync(filePath)); |
no outgoing calls
no test coverage detected