2018-03-24 16:22:20 +05:30

5 lines
80 B
JavaScript

expect(function() {
const foo = 1;
foo++;
}).toThrow('"foo" is read-only');