Skip to content

test summary

test summary #415

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

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✅ 717ms
test/categories.js 1✅ 608ms
test/counter.js 1✅ 709ms
test/custom-template.js 1✅ 681ms
test/default.js 1✅ 626ms
test/disable-sort.js 1✅ 623ms
test/duplicate.js 1✅ 402ms
test/emojikey.js 1✅ 679ms
test/feed-names.js 1✅ 699ms
test/js-manipulation.js 1✅ 578ms
test/max-post-count.js 1✅ 656ms
test/multiple.js 1✅ 615ms
test/random-emoji.js 1✅ 648ms
test/retry.js 1✅ 5s
test/truncated description.js 1✅ 564ms
test/truncated-title.js 1✅ 490ms
test/validation-flag.js 1✅ 426ms
test/without-custom-elements.js 1✅ 407ms
test/without-filters.js 1✅ 276ms

✅ 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✅ 792ms
test/categories.js 1✅ 825ms
test/counter.js 1✅ 743ms
test/custom-template.js 1✅ 746ms
test/default.js 1✅ 645ms
test/disable-sort.js 1✅ 647ms
test/duplicate.js 1✅ 458ms
test/emojikey.js 1✅ 737ms
test/feed-names.js 1✅ 648ms
test/js-manipulation.js 1✅ 564ms
test/max-post-count.js 1✅ 645ms
test/multiple.js 1✅ 537ms
test/random-emoji.js 1✅ 615ms
test/retry.js 1✅ 5s
test/truncated description.js 1✅ 442ms
test/truncated-title.js 1✅ 597ms
test/util.test.js 39✅ 53ms
test/validation-flag.js 1✅ 402ms
test/without-custom-elements.js 1✅ 515ms
test/without-filters.js 1✅ 303ms

✅ 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