forked from AkkomaGang/akkoma-fe
fix tests
This commit is contained in:
parent
68b4323181
commit
f16658adfc
2 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ import { getTagName } from './utility.service.js'
|
||||||
* @param {Object} input - input data
|
* @param {Object} input - input data
|
||||||
* @return {(string|{ text: string })[]} processed html in form of a list.
|
* @return {(string|{ text: string })[]} processed html in form of a list.
|
||||||
*/
|
*/
|
||||||
export const convertHtmlToLines = (html) => {
|
export const convertHtmlToLines = (html = '') => {
|
||||||
// Elements that are implicitly self-closing
|
// Elements that are implicitly self-closing
|
||||||
// https://developer.mozilla.org/en-US/docs/Glossary/empty_element
|
// https://developer.mozilla.org/en-US/docs/Glossary/empty_element
|
||||||
const emptyElements = new Set([
|
const emptyElements = new Set([
|
||||||
|
|
|
@ -19,7 +19,7 @@ import { getTagName } from './utility.service.js'
|
||||||
* @param {Object} input - input data
|
* @param {Object} input - input data
|
||||||
* @return {string} processed html
|
* @return {string} processed html
|
||||||
*/
|
*/
|
||||||
export const convertHtmlToTree = (html) => {
|
export const convertHtmlToTree = (html = '') => {
|
||||||
// Elements that are implicitly self-closing
|
// Elements that are implicitly self-closing
|
||||||
// https://developer.mozilla.org/en-US/docs/Glossary/empty_element
|
// https://developer.mozilla.org/en-US/docs/Glossary/empty_element
|
||||||
const emptyElements = new Set([
|
const emptyElements = new Set([
|
||||||
|
|
Loading…
Reference in a new issue