Skip to content

Commit

Permalink
test(spatial-navigation): verify if start method initializes event li…
Browse files Browse the repository at this point in the history
…stener of error
  • Loading branch information
CarlosVillasenor committed Jul 22, 2024
1 parent b047783 commit 32066a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/unit/spatial-navigation.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 32066a1

Please sign in to comment.