Skip to content

Commit

Permalink
Avoid Array.find (doesn't exist in IE)
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Orvell committed Jan 30, 2020
1 parent 7df89ae commit 5383f5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/legacy-noattributes.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@
});

test('telemetry collected as expected', () => {
const def = registrations.find((def) => def.is === el.localName);
assert.ok(def);
const defs = registrations.filter((def) => def.is === el.localName);
assert.ok(defs[0]);
});

test('native properties observeable when `_legacyForceObservedAttributes` set', function() {
Expand Down

0 comments on commit 5383f5f

Please sign in to comment.