Files

3 lines
57 B
JavaScript

const a = 1;
expect(() => { a = 2 }).toThrow(TypeError);