mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: fix ESLint violation and lessen rule strictness (#6081)
This commit is contained in:
@@ -67,7 +67,7 @@ describe('Emulation', () => {
|
||||
function dispatchTouch() {
|
||||
let fulfill;
|
||||
const promise = new Promise((x) => (fulfill = x));
|
||||
window.ontouchstart = function (e) {
|
||||
window.ontouchstart = () => {
|
||||
fulfill('Received touch');
|
||||
};
|
||||
window.dispatchEvent(new Event('touchstart'));
|
||||
|
||||
Reference in New Issue
Block a user