Skip to content

test summary

test summary #427

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✅ 6s
src-report.json 58✅ 7s

✅ dist-report.json

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

Test suite Passed Failed Skipped Time
test/categories-template.js 1✅ 726ms
test/categories.js 1✅ 637ms
test/counter.js 1✅ 753ms
test/custom-template.js 1✅ 689ms
test/default.js 1✅ 631ms
test/disable-sort.js 1✅ 658ms
test/duplicate.js 1✅ 429ms
test/emojikey.js 1✅ 759ms
test/feed-names.js 1✅ 796ms
test/js-manipulation.js 1✅ 635ms
test/max-post-count.js 1✅ 622ms
test/multiple.js 1✅ 647ms
test/random-emoji.js 1✅ 668ms
test/retry.js 1✅ 5s
test/truncated description.js 1✅ 598ms
test/truncated-title.js 1✅ 659ms
test/validation-flag.js 1✅ 444ms
test/without-custom-elements.js 1✅ 363ms
test/without-filters.js 1✅ 391ms

✅ 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✅ 711ms
test/categories.js 1✅ 750ms
test/counter.js 1✅ 704ms
test/custom-template.js 1✅ 708ms
test/default.js 1✅ 738ms
test/disable-sort.js 1✅ 769ms
test/duplicate.js 1✅ 508ms
test/emojikey.js 1✅ 718ms
test/feed-names.js 1✅ 715ms
test/js-manipulation.js 1✅ 599ms
test/max-post-count.js 1✅ 634ms
test/multiple.js 1✅ 629ms
test/random-emoji.js 1✅ 711ms
test/retry.js 1✅ 5s
test/truncated description.js 1✅ 622ms
test/truncated-title.js 1✅ 636ms
test/util.test.js 39✅ 37ms
test/validation-flag.js 1✅ 492ms
test/without-custom-elements.js 1✅ 571ms
test/without-filters.js 1✅ 551ms

✅ 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