Skip to content

Commit

Permalink
fix prettier errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasecdb committed Aug 7, 2019
1 parent cfaef0a commit 71435f5
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions src/__tests__/react-amphtml.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ describe('react-amphtml', (): void => {
change: ['AMP.setState({ myState: { input: event.value } })'],
}}
>
{(props: ActionOnProps): ReactElement => <input {...(props as any)} />}
{(props: ActionOnProps): ReactElement => <input {...props as any} />}
</AmpHelpers.Action>,
);

Expand All @@ -213,7 +213,7 @@ describe('react-amphtml', (): void => {
}}
>
{(props1: ActionOnProps): ReactElement => (
<input {...(props1 as any)} />
<input {...props1 as any} />
)}
</AmpHelpers.Action>
)}
Expand Down Expand Up @@ -349,15 +349,17 @@ describe('react-amphtml', (): void => {
const validator = await amphtmlValidator.getInstance();
const result = validator.validateString(htmlPage);

result.errors.forEach(({ line, col, message, specUrl, severity }): void => {
// eslint-disable-next-line no-console
(severity === 'ERROR' ? console.error : console.warn)(
// eslint-disable-line no-console
`line ${line}, col ${col}: ${message} ${
specUrl ? ` (see ${specUrl})` : ''
}`,
);
});
result.errors.forEach(
({ line, col, message, specUrl, severity }): void => {
// eslint-disable-next-line no-console
(severity === 'ERROR' ? console.error : console.warn)(
// eslint-disable-line no-console
`line ${line}, col ${col}: ${message} ${
specUrl ? ` (see ${specUrl})` : ''
}`,
);
},
);

expect(result.status).toBe('PASS');
});
Expand Down

0 comments on commit 71435f5

Please sign in to comment.