Skip to content

Commit

Permalink
Fix wrong assert in getDOMAttribute test, if component is at defaults…
Browse files Browse the repository at this point in the history
… it returns undefined, not an empty object (#5642)
  • Loading branch information
vincentfretin authored Jan 25, 2025
1 parent 84d4607 commit 6bf7ee5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/core/a-entity.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -727,9 +727,9 @@ suite('a-entity', function () {
assert.notOk('height' in componentData);
});

test('returns empty object if component is at defaults', function () {
test('returns undefined if component is at defaults', function () {
el.setAttribute('material', '');
assert.shallowDeepEqual(el.getDOMAttribute('material'), {});
assert.equal(el.getDOMAttribute('material'), undefined);
});

test('returns partial component data', function () {
Expand Down

0 comments on commit 6bf7ee5

Please sign in to comment.