From 5383f5f294593682c990c8505c4f5ebbd7e2a114 Mon Sep 17 00:00:00 2001 From: Steven Orvell Date: Thu, 30 Jan 2020 09:26:05 -0800 Subject: [PATCH] Avoid Array.find (doesn't exist in IE) --- test/unit/legacy-noattributes.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/legacy-noattributes.html b/test/unit/legacy-noattributes.html index 92ed94d828..20c7d65627 100644 --- a/test/unit/legacy-noattributes.html +++ b/test/unit/legacy-noattributes.html @@ -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() {