javascript test throw error code example
Example: javascript test throw error
expect( function(){ parser.parse(raw); } ).toThrow(new Error("Parsing is not possible"));
expect( function(){ parser.parse(raw); } ).toThrow(new Error("Parsing is not possible"));