Skip to content

test summary

test summary #424

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✅ 718ms
test/categories.js 1✅ 738ms
test/counter.js 1✅ 664ms
test/custom-template.js 1✅ 688ms
test/default.js 1✅ 754ms
test/disable-sort.js 1✅ 711ms
test/duplicate.js 1✅ 430ms
test/emojikey.js 1✅ 526ms
test/feed-names.js 1✅ 781ms
test/js-manipulation.js 1✅ 525ms
test/max-post-count.js 1✅ 636ms
test/multiple.js 1✅ 551ms
test/random-emoji.js 1✅ 473ms
test/retry.js 1✅ 5s
test/truncated description.js 1✅ 486ms
test/truncated-title.js 1✅ 632ms
test/validation-flag.js 1✅ 427ms
test/without-custom-elements.js 1✅ 543ms
test/without-filters.js 1✅ 381ms

✅ 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✅ 678ms
test/categories.js 1✅ 743ms
test/counter.js 1✅ 660ms
test/custom-template.js 1✅ 772ms
test/default.js 1✅ 746ms
test/disable-sort.js 1✅ 639ms
test/duplicate.js 1✅ 572ms
test/emojikey.js 1✅ 782ms
test/feed-names.js 1✅ 754ms
test/js-manipulation.js 1✅ 620ms
test/max-post-count.js 1✅ 657ms
test/multiple.js 1✅ 615ms
test/random-emoji.js 1✅ 620ms
test/retry.js 1✅ 5s
test/truncated description.js 1✅ 510ms
test/truncated-title.js 1✅ 512ms
test/util.test.js 39✅ 51ms
test/validation-flag.js 1✅ 344ms
test/without-custom-elements.js 1✅ 529ms
test/without-filters.js 1✅ 401ms

✅ 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