mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-05 13:57:10 -04:00
style(eslint): fixing eslint errors and warnings
This commit is contained in:
parent
089853e05b
commit
e672cdae63
5 changed files with 29 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
import { test, expect } from '@playwright/test';
|
||||
import { expect, test } from '@playwright/test';
|
||||
|
||||
test.describe('Tool - Extract text from html', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { expect, describe, it } from 'vitest';
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { getTextFromHtml, validateHtml } from './extract-text-from-html.service';
|
||||
|
||||
describe('extract-text-from-html service', () => {
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
function validateHtml(value: string) {
|
||||
try {
|
||||
new DOMParser().parseFromString(value, 'text/html');
|
||||
} catch (error) {
|
||||
}
|
||||
catch (error) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -29,5 +29,3 @@ const rules: UseValidationRule<string>[] = [
|
|||
:transformer="transformer"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<style lang="less" scoped></style>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue