Skip to content

Add CI

Add CI #21

GitHub Actions / Jest Tests succeeded Nov 9, 2023 in 0s

Jest Tests ✅

Tests failed

❌ coverage/reports/jest-junit.xml

90 tests were completed in 5s with 89 passed, 1 failed and 0 skipped.

Test suite Passed Failed Skipped Time
tests/stringutils.test.ts 27✅ 1❌ 4s

❌ tests/stringutils.test.ts

ICaseMap
  ✅ should set and get values in a case-insensitive manner
  ❌ should correctly check if a key exists in a case-insensitive manner
	Error: expect(received).toBe(expected) // Object.is equality
  ✅ should delete keys in a case-insensitive manner
  ✅ should handle keys with different cases
escape
  ✅ should escape a backslash
  ✅ should escape a comma in the string
  ✅ should escape a semicolon in the string
  ✅ should escape a newline character in the string
  ✅ should escape multiple instances of characters
  ✅ should not escape characters that are not present
  ✅ should not escape characters that are not special
unescape
  ✅ should unescape a backslash
  ✅ should unescape a comma
  ✅ should unescape a semicolon
  ✅ should unescape a newline character
  ✅ should not unescape characters that are not special
fold
  ✅ should not modify the string if it is within the max length
  ✅ should fold the string into lines within the max length
  ✅ should fold at 75 by default
unfold
  ✅ should remove folded line breaks with spaces
  ✅ should remove folded line breaks with tabs
  ✅ should not modify the string if there are no folded line breaks
includes
  ✅ should correctly identify the presence of a character
  ✅ should correctly identify the absence of a character
  ✅ should correctly handle escaped characters
  ✅ should correctly handle unescaped characters
split
  ✅ should split the string using the separator
  ✅ should handle escaped separators

Annotations

Check failure on line 18 in tests/stringutils.test.ts

See this annotation in the file changed.

@github-actions github-actions / Jest Tests

tests/stringutils.test.ts ► ICaseMap ► should correctly check if a key exists in a case-insensitive manner

Failed test found in:
  coverage/reports/jest-junit.xml
Error:
  Error: expect(received).toBe(expected) // Object.is equality
Raw output
Error: expect(received).toBe(expected) // Object.is equality

Expected: true
Received: false
    at Object.<anonymous> (/home/runner/work/vcards-io/vcards-io/tests/stringutils.test.ts:18:31)
    at Promise.then.completed (/home/runner/work/vcards-io/vcards-io/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/vcards-io/vcards-io/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/work/vcards-io/vcards-io/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/vcards-io/vcards-io/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/work/vcards-io/vcards-io/node_modules/jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (/home/runner/work/vcards-io/vcards-io/node_modules/jest-circus/build/run.js:121:9)
    at run (/home/runner/work/vcards-io/vcards-io/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/vcards-io/vcards-io/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/work/vcards-io/vcards-io/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/work/vcards-io/vcards-io/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/vcards-io/vcards-io/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/vcards-io/vcards-io/node_modules/jest-runner/build/testWorker.js:106:12)