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

6 lines
112 B
JavaScript

expect(function() {
for (const i = 0; i < 3; i = i + 1) {
// whatever
}
}).toThrow('"i" is read-only');