MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / assertJson

Function assertJson

scripts/integration/cli.mjs:2013–2017  ·  view source on GitHub ↗
(payload, label)

Source from the content-addressed store, hash-verified

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

Callers 3

mainFunction · 0.70
runRestControlsFunction · 0.70
assertRootsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected