mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 14:54:57 +00:00
19 lines
342 B
JavaScript
19 lines
342 B
JavaScript
test("constructors are always strict mode", () => {
|
|
class A {
|
|
constructor() {
|
|
expect(isStrictMode()).toBeTrue();
|
|
}
|
|
}
|
|
|
|
new A();
|
|
});
|
|
|
|
test("methods are always strict mode", () => {
|
|
class A {
|
|
method() {
|
|
expect(isStrictMode()).toBeTrue();
|
|
}
|
|
}
|
|
|
|
new A().method();
|
|
});
|