DX | 21-04-2025 | Release #228
GitHub Actions / JEST Tests
succeeded
Apr 21, 2025 in 0s
235 passed, 0 failed and 0 skipped
✅ reports/junit/jest-junit.xml
235 tests were completed in 10s with 235 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
test/attributes-to-string.test.ts | 11✅ | 168ms | ||
test/default-node-options.test.ts | 18✅ | 263ms | ||
test/default-options.test.ts | 13✅ | 340ms | ||
test/embedded-types.test.ts | 2✅ | 86ms | ||
test/entry-editable.test.ts | 10✅ | 1s | ||
test/find-embedded-objects.test.ts | 11✅ | 296ms | ||
test/find-render-content.test.ts | 28✅ | 382ms | ||
test/gql/gql-json-to-html.test.ts | 23✅ | 1s | ||
test/html-to-json.test.ts | 4✅ | 251ms | ||
test/json-to-html.test.ts | 46✅ | 3s | ||
test/node/mark-types.test.ts | 1✅ | 118ms | ||
test/node/node-initialise.test.ts | 3✅ | 326ms | ||
test/node/node-types.test.ts | 1✅ | 190ms | ||
test/reference-to-html.test.ts | 13✅ | 349ms | ||
test/regex-match.test.ts | 4✅ | 256ms | ||
test/render-embedded-to-html.test.ts | 26✅ | 3s | ||
test/string-extension.test.ts | 10✅ | 289ms | ||
test/text-node-to-html.test.ts | 8✅ | 213ms | ||
test/updateAssetURLForGQL.test.ts | 3✅ | 439ms |
✅ test/attributes-to-string.test.ts
Attributes to String
✅ Should return blank string on blank attributes
✅ Should return style type string
✅ Should return string of attributes key value format
✅ Should return string format for array attribute value
✅ Should rignore attributes with forbidden characters in keys and values
✅ Should handle object attribute values correctly
✅ Should convert arrays into comma-separated values
✅ Should handle special characters in values properly
✅ Should handle mixed types of values properly
✅ Should sanitize both keys and values to prevent HTML injection
✅ Should ignore attributes with forbidden characters in keys
✅ test/default-node-options.test.ts
Default node render options
✅ Should return document string
✅ Should return paragraph string
✅ Should return link string
✅ Should return link string with url as attr
✅ Should return Heading string
✅ Should return List string
✅ Should return HR string
✅ Should return table string
✅ Should return block quote string
✅ Should return code string
✅ Should return reference string
✅ Should return bold string
✅ Should return italic string
✅ Should return underline string
✅ Should return strike through string
✅ Should return inline code string
✅ Should return subscript string
✅ Should return superscript string
✅ test/default-options.test.ts
Default Option test
✅ Default options Entry with only uid test
✅ Default options Entry with uid, url test
✅ Default options Entry with only uid, title test
✅ Default options Entry with only uid, url, title test
✅ Default options Entry with only uid, url, system-uid test
✅ Default options Asset with only uid test
✅ Default options Asset with uid and url test
✅ Default options Asset with uid and filename test
✅ Default options Asset with uid, url and filename test
✅ Default options Asset with uid and title test
✅ Default options Asset with uid, url and filename test
✅ Default options Asset with uid, url and filename test
✅ Default options Link text test
✅ test/embedded-types.test.ts
Embedded types test
✅ Embedded Asset type test
✅ Embedded Entry type test
✅ test/entry-editable.test.ts
Entry editable test
✅ Entry with text test
✅ Entry with text should return object test
✅ Entry with Modular blocks test
✅ Entry with Modular blocks test return object
✅ Entry with reference test
✅ Entry with reference should return object test
✅ Entry with global fields test
✅ Entry with reference should return object test
✅ Entry with reference test
✅ Entry with reference should return object test
✅ test/find-embedded-objects.test.ts
Embedded object render from content
✅ Find Embedded Entry no matching uids with blank embedded Entry test
✅ Find Embedded Entry no matching uids with embedded Entry test
✅ Find Embedded Entry no matching uids without embedded Entry test
✅ Find Embedded Asset matching uids with embedded asset test
✅ Find Embedded asset and entry matching contents test
✅ Find EmbedObject from undefinded data test
✅ Find EmbedObject from embed asset test
✅ Find Render string from undefined objects test
✅ Find Render string from default renderOption
✅ Find Render string from default renderOption with alternate text
✅ Find Render string from passed renderOption
✅ test/find-render-content.test.ts
Find Render content test
✅ test getContent function
✅ blank path path test
✅ Simple String path test
✅ Array String path test
✅ Global Field String path test
✅ Global Field Array String path test
✅ Global Field Group String path test
✅ Global Field Group Array String path test
✅ Global Field modular block String path test
✅ Global Field modular block Array String path test
✅ Multiple Global Field String path test
✅ Multiple Global Field Array String path test
✅ Multiple Global Field Group String path test
✅ Multiple Global Field Group Array String path test
✅ Multiple Global Field modular block String path test
✅ Multiple Global Field modular block Array String path test
✅ Group String path test
✅ Group Array String path test
✅ modular blocks String path test
✅ modular blocks Array String path test
✅ Modular RTE Block String path test
✅ Modular RTE Block Array String path test
✅ Modular Global field Block String path test
✅ Modular Global field Block Array String path test
✅ Modular Global field Block group String path test
✅ Modular Global field Block group Array String path test
✅ Modular Global field Block Modular String path test
✅ Modular Global field Block Modular Array String path test
✅ test/gql/gql-json-to-html.test.ts
GQL Json To HTML
✅ Should accept proper values
✅ Should return content for non JSON RTE
✅ Should render Json To html
✅ Should render Json To html for Array of Entries
Node parser reference content
✅ Should render reference asset to html from Entry
✅ Should render reference asset to html from Entries
✅ Should render reference entry Block to html from Entries
✅ Should render reference entry link to html from Entries
✅ Should render reference entry inline to html from Entries
GQL parse text Content
✅ Should return all text wrapped patterns
GQL parse headers content
✅ Should return h1 html string
✅ Should return h2 html string
✅ Should return h3 html string
✅ Should return h4 html string
✅ Should return h5 html string
✅ Should return h6 html string
Node parse list content
✅ Should return order list html content
✅ Should return un-order list html content
GQL parse image content
✅ Should return image html content
GQL parse table content
✅ Should return table html content
Node parse blockquote content
✅ Should return blockquote html content
GQL parse code content
✅ Should return code html content
GQL parse link in paragraph content
✅ Should return link in paragraph html content
✅ test/html-to-json.test.ts
HTML To JSON test
✅ HTML To JSON figure tag with no child test
✅ HTML to JSON entry figure tag test
✅ HTML to JSON asset figure tag test
✅ HTML to JSON false tag test
✅ test/json-to-html.test.ts
Node parser paragraph content
✅ Should accept proper values
✅ Should return content for non JSON RTE
✅ Should render Json To html
✅ Should render Json To html with newline after single enter
✅ Should render Json To html for Array of Entries
✅ Should render array Json To array html
✅ Should render array Json To array html for array of Entries
✅ Should render Json To html
Node parser reference content
✅ Should render reference asset to html from Entry
✅ Should render reference asset to html from Entries
✅ Should render reference asset to html from Entry with custom render option
✅ Should render reference asset to html from Entries with custom render option
✅ should convert to html when and type is reference, attrs type is entry and display-type is link
✅ should convert to html when asset embedded as link in json_rte
Node parse text Content
✅ Should return all text wrapped patterns
✅ Should return array text wrapped patterns
✅ Should return html text with classname
✅ Should return html text with id
Node parse headers content
✅ Should return h1 html string
✅ Should return h2 html string
✅ Should return h3 html string
✅ Should return h4 html string
✅ Should return h5 html string
✅ Should return h6 html string
✅ Shoul return array of headers in html string
Node parse list content
✅ Should return order list html content
✅ Should return order list html content for updated json rte
✅ Should return un-order list html content
✅ Should return unorder list html content for previous json rte
✅ Should return unorder list html content for updated json rte
Node parse image content
✅ Should return image html content
✅ Should return image list html content
Node parse table content
✅ Should return table html content
Node parse blockquote content
✅ Should return blockquote html content
✅ Should return blockquote array html content
Node parse code content
✅ Should return code html content
✅ Should return code array html content
Node parse link in paragraph content
✅ Should return link in paragraph html content
✅ Should return link in paragraph array html content
Node parse style attribute
✅ Should return style attribute in paragraph html content
✅ Should return style attribute in headings tag content
Node parse json_rte Content
✅ Should return html text with classname
✅ Should return html text with id
✅ Should return html text with id in parent tag
✅ Should return html text with class and id in parent tag
✅ Testing json to html with figure tag
✅ test/node/mark-types.test.ts
Node Type Test
✅ Check Node Type Values
✅ test/node/node-initialise.test.ts
Node parser
✅ Should return node object
✅ Should return Document object
✅ Should return Document object
✅ test/node/node-types.test.ts
Node Type Test
✅ Check Node Type Values
✅ test/reference-to-html.test.ts
Reference Node To HTML
✅ Should return blank for undefined entry
✅ Should return blank for no children
✅ Should return HTML for embedded asset
✅ Should return HTML for embedded block entry
✅ Should return HTML for embedded link entry
✅ Should return HTML for embedded inline entry
✅ Should return custom HTML for embedded asset
✅ Should return custom HTML for embedded block entry
✅ Should return custom HTML for embedded inline entry
✅ Should return custom default HTML for embedded inline entry
✅ Should return image for undefined node asset
✅ Should return image for undefined node asset from default node option
✅ Should return HTML for embedded link entry
✅ test/regex-match.test.ts
Regex Match Test
✅ Check string contains Figure Tag test
✅ Match Asset and Entry figure
✅ Match Count Asset and Entry figure
✅ Match Figure Tag test
✅ test/render-embedded-to-html.test.ts
Embedded object render from content
✅ Render Simple Entry without renderOption
✅ Render Simple Entry with renderOption
✅ Render Simple Entry with $default in renderOption
✅ Render Simple Entry without renderOption and paths
✅ Render Simple Entry with renderOption without path
✅ Render Simple Entries without renderOption
✅ Render Simple Entries with renderOption
✅ Render Simple Entries without renderOption and path
✅ Render Simple Entries with renderOption without path
✅ Render function with blank content and options test
✅ Render function with non html content
✅ Render function with html content without Embedded object
✅ Render function with non html content and blanks
✅ Render Function with Embedded Entry without Options
✅ Render Function with Embedded Asset without Options test
✅ Render Function with Embedded Entry with Options
✅ Render Function with Embedded Entry with no items Options
✅ Render Function with Embedded Asset with Options test
✅ Render Function string of array with Embedded Entry with Options
✅ Render Function to render Embbedded Asset test
✅ Render Function to render Embbedded Asset with render option test
✅ Render Function to render Embedded Entries with out render option test
✅ Render Function to render Embedded Entries with render option test
✅ Render Function to render Embedded Entries with render option test
✅ Render function to render Embedded Entries with Multi-level rendering test
✅ Render function to render Embedded Entries with Multi-level rendering test
✅ test/string-extension.test.ts
String extension for each embedded Object
✅ Find Embedded object function with undefined string test
✅ Find Embedded object function with no Embedded contents test
✅ Find Embedded object function with Embedded contents no child test
✅ Find Embedded entry function with Embedded contents test
✅ Find Embedded assets function with Embedded contents test
✅ Find Embedded multiple object Link and Inline test
✅ Find Embedded multiple object Block, Link and Inline test
✅ Find Embedded multiple object Link and Display test
✅ Find Embedded multiple object Display, Link and Inline test
✅ Find Embedded multiple object Display, Block, Link and Inline test
✅ test/text-node-to-html.test.ts
Text Node To HTML
✅ Should return Bold string text
✅ Should return Italic string text
✅ Should return Underline string text
✅ Should return Strike Through string text
✅ Should return Inline Code string text
✅ Should return Subscript string text
✅ Should return Bold string text
✅ Should return combine Marks string text
✅ test/updateAssetURLForGQL.test.ts
updateAssetURLForGQL test
✅ should update the asset URL in the GQL response when proper response is passed
✅ should update the asset URL in the GQL response with multiple entries when proper response is passed
✅ should throw error when system.uid is not present
Loading