mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
5f0fd9d1c2
This PR adds an e2e test to ensure that the background and UI environments are locked down. It reuses the logic from the `protect-intrinsics.test.js`, and runs in both Chrome and Firefox.
16 lines
425 B
JavaScript
16 lines
425 B
JavaScript
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);
|
|
});
|
|
});
|
|
});
|