refactor: remove unnecessary variable assignment
This commit is contained in:
parent
c2c3b1d91b
commit
cbcc65c0b6
|
|
@ -64,8 +64,8 @@ window.playwrightMount = async (component, rootElement, hooksConfig) => {
|
||||||
if (!isObjectComponent(component))
|
if (!isObjectComponent(component))
|
||||||
throw new Error('JSX mount notation is not supported');
|
throw new Error('JSX mount notation is not supported');
|
||||||
|
|
||||||
const objectComponent = component;
|
|
||||||
const componentCtor = asClassComponent(component.type);
|
const componentCtor = asClassComponent(component.type);
|
||||||
|
|
||||||
class App extends componentCtor {
|
class App extends componentCtor {
|
||||||
constructor(options = {}) {
|
constructor(options = {}) {
|
||||||
if (!isObjectComponent(component))
|
if (!isObjectComponent(component))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue