Skip to content

Commit d0277b2

Browse files
- lint.fix;
1 parent 805aa69 commit d0277b2

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

core/src/components/avatar/avatar.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,7 @@ export class Avatar implements ComponentInterface {
8686
}
8787

8888
render() {
89-
const {
90-
hasImage,
91-
hasIcon,
92-
disabled
93-
} = this;
89+
const { hasImage, hasIcon, disabled } = this;
9490
const theme = getIonTheme(this);
9591
const size = this.getSize();
9692
const shape = this.getShape();

core/src/components/avatar/test/states/avatar.e2e.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@ import { configs, test } from '@utils/test/playwright';
55
* Avatar does not test RTL behaviors.
66
* Usages of Avatar in slots are tested in components that use Avatar.
77
*/
8-
configs({ directions: ['ltr'], modes: ['ionic-md'] }).forEach(({ config, screenshot, title }) => {
9-
test.describe(title('avatar: states'), () => {
10-
test('should not have visual regressions', async ({ page }) => {
11-
await page.setContent(
8+
configs({ directions: ['ltr'], modes: ['ionic-md'] }).forEach(({ config, screenshot, title }) => {
9+
test.describe(title('avatar: states'), () => {
10+
test('should not have visual regressions', async ({ page }) => {
11+
await page.setContent(
1212
`
1313
<div id="container">
1414
<ion-avatar id="avatar-characters-disabled" disabled> AV </ion-avatar>
1515
<ion-avatar id="avatar-characters-disabled" disabled>
1616
<img src="/src/components/avatar/test/avatar.svg" />
1717
</ion-avatar>
1818
</div>
19-
`,
20-
config
21-
);
19+
`,
20+
config
21+
);
2222
const avatarCharactersDisabled = page.locator('#avatar-characters-disabled');
2323
const avatarDisabled = page.locator('#avatar-disabled');
2424
await expect(avatarCharactersDisabled).toHaveScreenshot(screenshot(`avatar-characters-disabled-diff`));

0 commit comments

Comments
 (0)