chore: make lint green
This commit is contained in:
parent
b2bfb85dff
commit
84f5e95ccb
|
|
@ -323,6 +323,10 @@ export class BidiPage implements PageDelegate {
|
||||||
throw new Error('Method not implemented.');
|
throw new Error('Method not implemented.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async forceGarbageCollection(): Promise<void> {
|
||||||
|
throw new Error('Method not implemented.');
|
||||||
|
}
|
||||||
|
|
||||||
async addInitScript(initScript: InitScript): Promise<void> {
|
async addInitScript(initScript: InitScript): Promise<void> {
|
||||||
const { script } = await this._session.send('script.addPreloadScript', {
|
const { script } = await this._session.send('script.addPreloadScript', {
|
||||||
// TODO: remove function call from the source.
|
// TODO: remove function call from the source.
|
||||||
|
|
|
||||||
|
|
@ -14,9 +14,9 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { test as it, expect } from './pageTest';
|
import { test, expect } from './pageTest';
|
||||||
|
|
||||||
it('should work', async function({ page, browserName }) {
|
test('should work', async ({ page }) => {
|
||||||
await page.evaluate(() => {
|
await page.evaluate(() => {
|
||||||
globalThis.objectToDestroy = {};
|
globalThis.objectToDestroy = {};
|
||||||
globalThis.weakRef = new WeakRef(globalThis.objectToDestroy);
|
globalThis.weakRef = new WeakRef(globalThis.objectToDestroy);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue