Skip to content

Commit

Permalink
Fix test script that fails due to inadequate mocking of canvas.
Browse files Browse the repository at this point in the history
  • Loading branch information
diarmidmackenzie committed Nov 18, 2022
1 parent 2209a49 commit 84a0d63
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/core/scene/a-scene.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ suite('a-scene (without renderer)', function () {

// mock canvas
sceneEl.canvas = {
classList: {
add: function () {},
remove: function () {}
},
addEventListener: function () {},
removeEventListener: function () {},
requestFullscreen: function () {}
Expand Down

0 comments on commit 84a0d63

Please sign in to comment.