5 lines
78 B
JavaScript
5 lines
78 B
JavaScript
expect(function() {
|
|
const a = "str";
|
|
--a;
|
|
}).toThrow('"a" is read-only');
|