Skip to content

Commit

Permalink
fix(test): update label test with default icon size.
Browse files Browse the repository at this point in the history
  • Loading branch information
gchoqueux committed Apr 9, 2021
1 parent baabbae commit 72a98d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/unit/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ global.document = {
getElementsByTagName: () => [new DOMElement()],
};

global.document.documentElement = global.document.createElement();

class Renderer {
constructor() {
this.domElement = new DOMElement();
Expand Down
1 change: 1 addition & 0 deletions test/unit/label.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ describe('Label', function () {
paint: {},
layout: {
'icon-image': 'icon',
'icon-size': 1,
},
}, {
img: '',
Expand Down

0 comments on commit 72a98d4

Please sign in to comment.