MCPcopy Create free account
hub / github.com/bigcommerce/stencil-cli / throws

Function throws

lib/parse-json.spec.js:8–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6 const file = new RegExp(badJsonFilename);
7 it('should add file name to error', () => {
8 const throws = () => {
9 parse(badJson, badJsonFilename);
10 };
11 expect(throws).toThrow(Error, file);
12 });
13 it('should not need a file name', () => {

Callers

nothing calls this directly

Calls 1

parseFunction · 0.90

Tested by

no test coverage detected