From 32066a1154e3829c2c93462b774167ccbd0ecab1 Mon Sep 17 00:00:00 2001 From: cvillasenor Date: Mon, 22 Jul 2024 11:47:02 -0600 Subject: [PATCH] test(spatial-navigation): verify if start method initializes event listener of error --- test/unit/spatial-navigation.test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/unit/spatial-navigation.test.js b/test/unit/spatial-navigation.test.js index 0a28a58bea..00f35d1ee1 100644 --- a/test/unit/spatial-navigation.test.js +++ b/test/unit/spatial-navigation.test.js @@ -44,6 +44,7 @@ QUnit.test('start method initializes event listeners', function(assert) { assert.ok(onSpy.calledWith('loadedmetadata'), 'loadedmetadata event listener added'); assert.ok(onSpy.calledWith('modalKeydown'), 'modalKeydown event listener added'); assert.ok(onSpy.calledWith('modalclose'), 'modalclose event listener added'); + assert.ok(onSpy.calledWith('error'), 'error event listener added'); // Additionally, check if isListening_ flag is set assert.ok(this.spatialNav.isListening_, 'isListening_ flag is set');