2020-10-25 22:30:28 +01:00

3 lines
57 B
JavaScript

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