Skip to content

feat: handle empty string in displaystring pipe #6716

feat: handle empty string in displaystring pipe

feat: handle empty string in displaystring pipe #6716

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / Unit Test Results succeeded Sep 19, 2023 in 0s

2 fail, 1 121 pass in 47m 13s

       4 files     310 suites   47m 13s ⏱️
1 123 tests 1 121 ✔️ 0 💤 2 ❌
1 133 runs  1 131 ✔️ 0 💤 2 ❌

Results for commit eca3b49.

Annotations

Check warning on line 0 in String formatter can convert to display string

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

String formatter can convert to display string (String formatter can convert to display string) failed

artifacts/Unit Test Results (chunk 2)/hypertrace-ui/junit.xml
Raw output
Error: expect(received).toBe(expected) // Object.is equality

Expected: ""
Received: "-"
    at /home/runner/work/hypertrace-ui/hypertrace-ui/projects/common/src/utilities/formatters/string/string-formatter.test.ts:8:31
    at _ZoneDelegate.Object.<anonymous>._ZoneDelegate.invoke (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:409:30)
    at ProxyZoneSpec.Object.<anonymous>.ProxyZoneSpec.onInvoke (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:3830:43)
    at _ZoneDelegate.Object.<anonymous>._ZoneDelegate.invoke (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:408:56)
    at Zone.Object.<anonymous>.Zone.run (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:169:47)
    at Object.wrappedFunc (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:4330:34)
    at Promise.then.completed (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/utils.js:333:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/utils.js:259:10)
    at _callCircusTest (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/run.js:277:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/run.js:209:3)
    at _runTestsForDescribeBlock (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/run.js:97:9)
    at _runTestsForDescribeBlock (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/run.js:91:9)
    at run (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/run.js:31:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:135:21)

Check warning on line 0 in String formatter can convert to display string with default empty value

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

String formatter can convert to display string with default empty value (String formatter can convert to display string with default empty value) failed

artifacts/Unit Test Results (chunk 2)/hypertrace-ui/junit.xml
Raw output
Error: expect(received).toBe(expected) // Object.is equality

Expected: ""
Received: "none"
    at /home/runner/work/hypertrace-ui/hypertrace-ui/projects/common/src/utilities/formatters/string/string-formatter.test.ts:22:39
    at _ZoneDelegate.Object.<anonymous>._ZoneDelegate.invoke (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:409:30)
    at ProxyZoneSpec.Object.<anonymous>.ProxyZoneSpec.onInvoke (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:3830:43)
    at _ZoneDelegate.Object.<anonymous>._ZoneDelegate.invoke (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:408:56)
    at Zone.Object.<anonymous>.Zone.run (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:169:47)
    at Object.wrappedFunc (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:4330:34)
    at Promise.then.completed (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/utils.js:333:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/utils.js:259:10)
    at _callCircusTest (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/run.js:277:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/run.js:209:3)
    at _runTestsForDescribeBlock (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/run.js:97:9)
    at _runTestsForDescribeBlock (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/run.js:91:9)
    at run (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/run.js:31:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:135:21)