From 7f259c233423bd8e147a3374a20fff11792b0c69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20I=C3=9Fbr=C3=BCcker?= Date: Thu, 21 Apr 2022 15:46:02 +0200 Subject: [PATCH] revert changes to other test setup --- test/keyboard-navigation.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/keyboard-navigation.html b/test/keyboard-navigation.html index cdf935b6e..230665cc1 100644 --- a/test/keyboard-navigation.html +++ b/test/keyboard-navigation.html @@ -1912,14 +1912,13 @@ right(); const spy = sinon.spy(); - function callback(e) { + + grid.addEventListener('cell-focus', (e) => { spy(); const context = e.target.getEventContext(e); expect(context).to.deep.equal(expectedContext); - grid.removeEventListener('cell-focus', callback); done(); - } - grid.addEventListener('cell-focus', callback); + }); left();