Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanKiral committed Sep 7, 2023
1 parent adcbe63 commit 343595f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Elements, ElementType } from "@kontent-ai/delivery-sdk";
import { PortableTextOptions, toHTML, escapeHTML } from "@portabletext/to-html";
import { resolveTable, nodeParse, transformToPortableText, browserParse } from "../../../src";
import { escapeHTML,PortableTextOptions, toHTML } from "@portabletext/to-html";

import { browserParse,nodeParse, resolveTable, transformToPortableText } from "../../../src";

jest.mock('short-unique-id', () => {
return jest.fn().mockImplementation(() => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IPortableTextItem, browserParse, nodeParse, transformToPortableText } from "../../../src";
import { browserParse, IPortableTextItem, nodeParse, transformToPortableText } from "../../../src";

jest.mock('short-unique-id', () => {
return jest.fn().mockImplementation(() => {
Expand Down Expand Up @@ -77,7 +77,7 @@ describe("portable text transformer", () => {
<p><strong>Overlapping bold </strong><em><strong>over</strong></em><em> itallic text</em></p>
<ol>
<li>Odered list</li>
<li>Ord<strong>ered </strong><strong><sub>li</sub></strong><a href=\"http://www.example.com\"><em><strong><sub>s</sub></strong></em><em>t with s</em>tyles and li</a>nk
<li>Ord<strong>ered </strong><strong><sub>li</sub></strong><a href="http://www.example.com"><em><strong><sub>s</sub></strong></em><em>t with s</em>tyles and li</a>nk
<ol>
<li>Nested ordered list</li>
<li>Nested ordered list
Expand All @@ -90,13 +90,13 @@ describe("portable text transformer", () => {
</li>
</ol>
<h1><br></h1>
<figure data-asset-id=\"8c35b61a-8fcb-4089-a576-5a5e7a158bf2\" data-image-id=\"8c35b61a-8fcb-4089-a576-5a5e7a158bf2\"><img src=\"https://example.com/image.png\" data-asset-id=\"8c35b61a-8fcb-4089-a576-5a5e7a158bf2\" data-image-id=\"8c35b61a-8fcb-4089-a576-5a5e7a158bf2\" alt=\"\"></figure>
<figure data-asset-id="8c35b61a-8fcb-4089-a576-5a5e7a158bf2" data-image-id="8c35b61a-8fcb-4089-a576-5a5e7a158bf2"><img src="https://example.com/image.png" data-asset-id="8c35b61a-8fcb-4089-a576-5a5e7a158bf2" data-image-id="8c35b61a-8fcb-4089-a576-5a5e7a158bf2" alt=""></figure>
<h1>Heading</h1>
<h4>Heading little</h4>
<table><tbody>
<tr><td>1</td><td>2 - w<strong>ith bold te</strong>xt</td><td>3 - w<a href=\"http://www.example.com\">ith link ins</a>ide</td></tr>
<tr><td>4 <em>- w</em><a data-item-id=\"6538fde0-e6e5-425c-8642-278e637b2dc1\" href=\"\"><em>ith lin</em>k to cont</a>ent</td><td><p>5 - with image in <em>table</em></p>
<figure data-asset-id=\"8c35b61a-8fcb-4089-a576-5a5e7a158bf2\" data-image-id=\"8c35b61a-8fcb-4089-a576-5a5e7a158bf2\"><img src=\"https://example.com/image.png\" data-asset-id=\"8c35b61a-8fcb-4089-a576-5a5e7a158bf2\" data-image-id=\"8c35b61a-8fcb-4089-a576-5a5e7a158bf2\" alt=\"\"></figure>
<tr><td>1</td><td>2 - w<strong>ith bold te</strong>xt</td><td>3 - w<a href="http://www.example.com">ith link ins</a>ide</td></tr>
<tr><td>4 <em>- w</em><a data-item-id="6538fde0-e6e5-425c-8642-278e637b2dc1" href=""><em>ith lin</em>k to cont</a>ent</td><td><p>5 - with image in <em>table</em></p>
<figure data-asset-id="8c35b61a-8fcb-4089-a576-5a5e7a158bf2" data-image-id="8c35b61a-8fcb-4089-a576-5a5e7a158bf2"><img src="https://example.com/image.png" data-asset-id="8c35b61a-8fcb-4089-a576-5a5e7a158bf2" data-image-id="8c35b61a-8fcb-4089-a576-5a5e7a158bf2" alt=""></figure>
<p><em>and style over the i</em>mage</p>
</td><td><p>6 - with list&nbsp;</p>
<ul>
Expand Down

0 comments on commit 343595f

Please sign in to comment.