Skip to content

test summary

test summary #423

GitHub Actions / Mocha Tests succeeded Sep 8, 2024 in 0s

77 passed, 0 failed and 0 skipped

Tests passed successfully

Report Passed Failed Skipped Time
dist-report.json 19✅ 7s
src-report.json 58✅ 7s

✅ dist-report.json

19 tests were completed in 7s with 19 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
test/categories-template.js 1✅ 692ms
test/categories.js 1✅ 575ms
test/counter.js 1✅ 674ms
test/custom-template.js 1✅ 582ms
test/default.js 1✅ 696ms
test/disable-sort.js 1✅ 574ms
test/duplicate.js 1✅ 514ms
test/emojikey.js 1✅ 705ms
test/feed-names.js 1✅ 919ms
test/js-manipulation.js 1✅ 583ms
test/max-post-count.js 1✅ 686ms
test/multiple.js 1✅ 618ms
test/random-emoji.js 1✅ 575ms
test/retry.js 1✅ 5s
test/truncated description.js 1✅ 573ms
test/truncated-title.js 1✅ 505ms
test/validation-flag.js 1✅ 481ms
test/without-custom-elements.js 1✅ 438ms
test/without-filters.js 1✅ 536ms

✅ test/categories-template.js

Generated readme with categories template
  ✅ should match the snapshot

✅ test/categories.js

Generated readme with categories names
  ✅ should match the snapshot

✅ test/counter.js

Generated readme with $counter template
  ✅ should match the snapshot

✅ test/custom-template.js

Custom template readme generated
  ✅ should match the snapshot

✅ test/default.js

Default template readme generated
  ✅ should match the snapshot

✅ test/disable-sort.js

Sorting disabled readme
  ✅ should be equal to the saved snapshot

✅ test/duplicate.js

Generated readme with remove duplicates flag
  ✅ should match the snapshot

✅ test/emojikey.js

Generated readme with $emojiKey template
  ✅ should match the snapshot

✅ test/feed-names.js

Generated readme with feed names
  ✅ should match the snapshot

✅ test/js-manipulation.js

Generated readme with advanced manipulation via JS
  ✅ should match the snapshot

✅ test/max-post-count.js

Generated readme with max post count
  ✅ should match the snapshot

✅ test/multiple.js

Multiple readme generated via readme_path
  ✅ should match the snapshots

✅ test/random-emoji.js

Default template readme generated
  ✅ Generated readme with $randomEmoji template should match the snapshot

✅ test/retry.js

Readme generated after retry
  ✅ should match the snapshot

✅ test/truncated description.js

Generated readme with truncated description
  ✅ should match the snapshot

✅ test/truncated-title.js

Generated readme with truncated title
  ✅ should match the snapshot

✅ test/validation-flag.js

Generated readme with no validation flag
  ✅ should match the snapshot

✅ test/without-custom-elements.js

Generated readme without custom elements
  ✅ should match the snapshot

✅ test/without-filters.js

Generated readme without filters
  ✅ should match the snapshot

✅ src-report.json

58 tests were completed in 7s with 58 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
test/categories-template.js 1✅ 745ms
test/categories.js 1✅ 748ms
test/counter.js 1✅ 673ms
test/custom-template.js 1✅ 776ms
test/default.js 1✅ 697ms
test/disable-sort.js 1✅ 628ms
test/duplicate.js 1✅ 521ms
test/emojikey.js 1✅ 706ms
test/feed-names.js 1✅ 720ms
test/js-manipulation.js 1✅ 694ms
test/max-post-count.js 1✅ 625ms
test/multiple.js 1✅ 510ms
test/random-emoji.js 1✅ 619ms
test/retry.js 1✅ 5s
test/truncated description.js 1✅ 486ms
test/truncated-title.js 1✅ 491ms
test/util.test.js 39✅ 4ms
test/validation-flag.js 1✅ 355ms
test/without-custom-elements.js 1✅ 447ms
test/without-filters.js 1✅ 376ms

✅ test/categories-template.js

Generated readme with categories template
  ✅ should match the snapshot

✅ test/categories.js

Generated readme with categories names
  ✅ should match the snapshot

✅ test/counter.js

Generated readme with $counter template
  ✅ should match the snapshot

✅ test/custom-template.js

Custom template readme generated
  ✅ should match the snapshot

✅ test/default.js

Default template readme generated
  ✅ should match the snapshot

✅ test/disable-sort.js

Sorting disabled readme
  ✅ should be equal to the saved snapshot

✅ test/duplicate.js

Generated readme with remove duplicates flag
  ✅ should match the snapshot

✅ test/emojikey.js

Generated readme with $emojiKey template
  ✅ should match the snapshot

✅ test/feed-names.js

Generated readme with feed names
  ✅ should match the snapshot

✅ test/js-manipulation.js

Generated readme with advanced manipulation via JS
  ✅ should match the snapshot

✅ test/max-post-count.js

Generated readme with max post count
  ✅ should match the snapshot

✅ test/multiple.js

Multiple readme generated via readme_path
  ✅ should match the snapshots

✅ test/random-emoji.js

Default template readme generated
  ✅ Generated readme with $randomEmoji template should match the snapshot

✅ test/retry.js

Readme generated after retry
  ✅ should match the snapshot

✅ test/truncated description.js

Generated readme with truncated description
  ✅ should match the snapshot

✅ test/truncated-title.js

Generated readme with truncated title
  ✅ should match the snapshot

✅ test/util.test.js

categoriesToArray
  ✅ should handle a mix of valid and invalid objects
  ✅ should ignore objects without the "_" property
  ✅ should return an array of strings when the input is a mixed array of strings and CategoryObj objects
  ✅ should return an array of strings when the input is an array of CategoryObj objects
  ✅ should return an array of strings when the input is an array of strings
  ✅ should return an empty array when the input array contains only objects without the "_" property
  ✅ should return an empty array when the input is an empty array
  ✅ should return an empty array when the input is not an array
escapeHTML
  ✅ should escape multiple conflicting characters
  ✅ should escape the ampersand character (&)
  ✅ should escape the closing parenthesis character ())
  ✅ should escape the double quote character (")
  ✅ should escape the greater-than character (>)
  ✅ should escape the less-than character (<)
  ✅ should escape the opening parenthesis character (()
  ✅ should escape the single quote character (')
  ✅ should return an empty string if the input is an empty string
  ✅ should return the original string if there are no conflicting characters
getParameterisedTemplate
  ✅ should correctly parse keys with spaces around parameters
  ✅ should handle templates with multiple occurrences of the same key
  ✅ should return an array of parameters when the template contains a valid key with parameters
  ✅ should return an array of parameters when the template contains another valid key with parameters
  ✅ should return null if the key does not exist in the template
  ✅ should return null if the key exists but is not followed by an opening parenthesis
  ✅ should return null if the key is empty
  ✅ should return null if the template is empty
truncateString
  ✅ should correctly handle multi-byte characters
  ✅ should handle strings with leading and trailing spaces correctly
  ✅ should return "..." if the specified length is zero
  ✅ should return "H..." if the specified length is 1 after trimming leading spaces
  ✅ should return an empty string if an empty string is provided
  ✅ should return the original string if its length is less than or equal to the specified length
  ✅ should truncate the string and add "..." if the string is longer than the specified length
updateAndParseCompoundParams
  ✅ should handle an empty string as the source and not update the object
  ✅ should handle cases where the object is pre-populated
  ✅ should handle cases where the source has more than 3 parts and return the original source
  ✅ should handle cases where the source has only 2 parts and return the original source
  ✅ should return the original source name if the source does not contain exactly 3 parts
  ✅ should update the object with the correct key-value pair and return the source name when the source has compound parameters

✅ test/validation-flag.js

Generated readme with no validation flag
  ✅ should match the snapshot

✅ test/without-custom-elements.js

Generated readme without custom elements
  ✅ should match the snapshot

✅ test/without-filters.js

Generated readme without filters
  ✅ should match the snapshot