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

5 lines
176 B
JavaScript

// JSON is wrapped because it starts with an uppercase letter, but it
// should not be possible to extend it anyway.
expect(() => class BetterJSON extends JSON {}).toThrow();