fix tests

This commit is contained in:
Henry Jameson 2021-08-15 02:59:14 +03:00 committed by Sam Therapy
parent 5c1789dbc7
commit 7e14a12b89
Signed by: sam
GPG key ID: 4D8B07C18F31ACBD
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ import { getTagName } from './utility.service.js'
* @param {Object} input - input data
* @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
// https://developer.mozilla.org/en-US/docs/Glossary/empty_element
const emptyElements = new Set([

View file

@ -19,7 +19,7 @@ import { getTagName } from './utility.service.js'
* @param {Object} input - input data
* @return {string} processed html
*/
export const convertHtmlToTree = (html) => {
export const convertHtmlToTree = (html = '') => {
// Elements that are implicitly self-closing
// https://developer.mozilla.org/en-US/docs/Glossary/empty_element
const emptyElements = new Set([