Fix unneeded variables

This commit is contained in:
Paul Kaplan 2021-06-21 12:34:49 -04:00
parent 1cace60ebd
commit d35cee93f1

View file

@ -48,8 +48,7 @@ describe('Studio comments', () => {
// Regression test for situation where admin logs out but localStorage still // Regression test for situation where admin logs out but localStorage still
// contains "open", causing extra space to appear // contains "open", causing extra space to appear
global.localStorage.setItem(adminPanelOpenKey, 'open'); global.localStorage.setItem(adminPanelOpenKey, 'open');
const component = mountWithIntl(<StudioAdminPanel showAdminPanel={false} />); mountWithIntl(<StudioAdminPanel showAdminPanel={false} />);
const child = component.find(AdminPanel);
expect(viewEl.classList.contains(adminPanelOpenClass)).toBe(false); expect(viewEl.classList.contains(adminPanelOpenClass)).toBe(false);
}); });
}); });