From 78596d9bad6393cef1cb978c6f8489d3eeff1f62 Mon Sep 17 00:00:00 2001 From: Younes Jaaidi Date: Wed, 27 Mar 2024 22:05:09 +0100 Subject: [PATCH] chore(ct-angular): lint --- package-lock.json | 2 +- packages/playwright-ct-angular/package.json | 4 ++-- packages/playwright-ct-angular/registerSource.mjs | 6 ++++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 036b420b03..7964f5cd1b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8437,7 +8437,7 @@ }, "packages/playwright-ct-angular": { "name": "@playwright/experimental-ct-angular", - "version": "1.42.0-next", + "version": "1.43.0-next", "license": "Apache-2.0", "dependencies": { "@playwright/experimental-ct-core": "1.43.0-next" diff --git a/packages/playwright-ct-angular/package.json b/packages/playwright-ct-angular/package.json index c0bcb6ed1a..3d58f4e5ed 100644 --- a/packages/playwright-ct-angular/package.json +++ b/packages/playwright-ct-angular/package.json @@ -1,10 +1,10 @@ { "name": "@playwright/experimental-ct-angular", - "version": "1.42.0-next", + "version": "1.43.0-next", "description": "Playwright Component Testing for Angular", "repository": { "type": "git", - "url": "git+https://github.com/sand4rt/playwright-ct-angular.git" + "url": "git+https://github.com/microsoft/playwright.git" }, "homepage": "https://playwright.dev", "engines": { diff --git a/packages/playwright-ct-angular/registerSource.mjs b/packages/playwright-ct-angular/registerSource.mjs index 534cc84488..5fcb88384a 100644 --- a/packages/playwright-ct-angular/registerSource.mjs +++ b/packages/playwright-ct-angular/registerSource.mjs @@ -53,7 +53,8 @@ window.playwrightMount = async (component, rootElement, hooksConfig) => { window.playwrightUnmount = async rootElement => { const fixture = __pwFixtureRegistry.get(rootElement.id); - if (!fixture) throw new Error('Component was not mounted'); + if (!fixture) + throw new Error('Component was not mounted'); /* Unsubscribe from all outputs. */ for (const subscription of Object.values(__pwOutputSubscriptionRegistry.get(fixture) ?? {})) @@ -130,7 +131,8 @@ async function __pwRenderComponent(component) { * @param {ComponentInfo} componentInfo */ function __pwUpdateProps(fixture, componentInfo) { - if (!componentInfo.props) return; + if (!componentInfo.props) + return; if (__pwIsTemplate(componentInfo)) { Object.assign(fixture.componentInstance, componentInfo.props);