refactor: replace .forEach()
with for-of
(#39691)
* refactor: replace `.forEach()` with `for-of` * refactor docs/fiddles/features/web-hid/renderer.js
This commit is contained in:
parent
7858921a1f
commit
0b0707145b
32 changed files with 144 additions and 132 deletions
|
@ -44,9 +44,9 @@ describe('chrome extensions', () => {
|
|||
});
|
||||
afterEach(closeAllWindows);
|
||||
afterEach(() => {
|
||||
session.defaultSession.getAllExtensions().forEach((e: any) => {
|
||||
for (const e of session.defaultSession.getAllExtensions()) {
|
||||
session.defaultSession.removeExtension(e.id);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
it('does not crash when using chrome.management', async () => {
|
||||
|
@ -759,9 +759,9 @@ describe('chrome extensions', () => {
|
|||
|
||||
describe('extension ui pages', () => {
|
||||
afterEach(() => {
|
||||
session.defaultSession.getAllExtensions().forEach(e => {
|
||||
for (const e of session.defaultSession.getAllExtensions()) {
|
||||
session.defaultSession.removeExtension(e.id);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
it('loads a ui page of an extension', async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue