()
| 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', () => { |