1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-29 07:16:36 +01:00
metamask-extension/test/unit-global/protect-intrinsics.test.js

16 lines
425 B
JavaScript
Raw Normal View History

import 'ses/lockdown';
import '../../app/scripts/lockdown-run';
import '../../app/scripts/lockdown-more';
import {
getGlobalProperties,
testIntrinsic,
} from '../helpers/protect-intrinsics-helpers';
describe('non-modifiable intrinsics', function () {
getGlobalProperties().forEach((propertyName) => {
it(`intrinsic globalThis["${propertyName}"]`, function () {
testIntrinsic(propertyName);
});
});
});