2020-05-28 02:22:08 -03:00
|
|
|
"use strict";
|
|
|
|
|
|
2020-07-05 14:47:40 -03:00
|
|
|
test("basic functionality", () => {
|
|
|
|
|
expect(isStrictMode()).toBeTrue();
|
2020-05-28 02:22:08 -03:00
|
|
|
|
2020-07-06 11:37:45 -03:00
|
|
|
(function () {
|
|
|
|
|
expect(isStrictMode()).toBeTrue();
|
|
|
|
|
})();
|
2020-05-28 02:22:08 -03:00
|
|
|
|
2020-07-06 11:37:45 -03:00
|
|
|
(() => {
|
|
|
|
|
expect(isStrictMode()).toBeTrue();
|
|
|
|
|
})();
|
|
|
|
|
|
|
|
|
|
(() => {
|
|
|
|
|
"use strict";
|
|
|
|
|
expect(isStrictMode()).toBeTrue();
|
|
|
|
|
})();
|
2021-07-11 20:39:03 -03:00
|
|
|
|
|
|
|
|
function a() {
|
|
|
|
|
expect(isStrictMode()).toBeTrue();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
a();
|
|
|
|
|
|
|
|
|
|
eval("expect(isStrictMode()).toBeTrue()");
|
2020-07-05 14:47:40 -03:00
|
|
|
});
|