Fix publish test results #5
7 fail, 2 pass in 0s
Annotations
Check warning on line 0 in search returns price facet for matched documents
github-actions / Test Results
search returns price facet for matched documents (search returns price facet for matched documents) failed
test-results/jest/results.xml [took 0s]
Raw output
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Array [
+ "0 - 5",
"5 - 10",
- "15 - 20",
]
at Object.<anonymous> (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/js/search.test.js:89:73)
at Promise.then.completed (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/run.js:316:40)
at _runTest (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-runner/build/runTest.js:444:34)
Check warning on line 0 in search returns year facet for matched documents
github-actions / Test Results
search returns year facet for matched documents (search returns year facet for matched documents) failed
test-results/jest/results.xml [took 0s]
Raw output
Error: expect(received).toEqual(expected) // deep equality
- Expected - 2
+ Received + 2
Array [
- "2008",
- "2002",
+ "2015",
+ "2000",
]
at Object.<anonymous> (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/js/search.test.js:96:72)
at Promise.then.completed (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/run.js:316:40)
at _runTest (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-runner/build/runTest.js:444:34)
Check warning on line 0 in search allows filtering by one facet value
github-actions / Test Results
search allows filtering by one facet value (search allows filtering by one facet value) failed
test-results/jest/results.xml [took 0s]
Raw output
Error: expect(received).toEqual(expected) // deep equality
- Expected - 0
+ Received + 36
@@ -33,6 +33,42 @@
},
"title": Object {
"label": "Legend: The Best of Bob Marley and the Wailers (Remastered)",
},
},
+ Object {
+ "category": Object {
+ "attributes": Object {
+ "label": "POP",
+ },
+ },
+ "id": Object {
+ "attributes": Object {
+ "im:id": "2",
+ },
+ },
+ "im:artist": Object {
+ "label": "The Doors",
+ },
+ "im:name": Object {
+ "label": "The Very Best of The Doors",
+ },
+ "im:price": Object {
+ "attributes": Object {
+ "amount": "19.99",
+ },
+ "label": "$19.99",
+ },
+ "im:releaseDate": Object {
+ "attributes": Object {
+ "label": "January 29, 2008",
+ },
+ "label": "2008-01-29T00:00:00-07:00",
+ },
+ "rights": Object {
+ "label": "℗ 2008 Rhino Entertainment Company, A Warner Music Group Company",
+ },
+ "title": Object {
+ "label": "The Very Best of The Doors",
+ },
+ },
]
at Object.<anonymous> (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/js/search.test.js:107:35)
at Promise.then.completed (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/run.js:316:40)
at _runTest (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-runner/build/runTest.js:444:34)
Check warning on line 0 in search allows filtering by multiple facet values
github-actions / Test Results
search allows filtering by multiple facet values (search allows filtering by multiple facet values) failed
test-results/jest/results.xml [took 0s]
Raw output
Error: expect(received).toEqual(expected) // deep equality
- Expected - 2
+ Received + 2
Array [
- "2008",
- "2002",
+ "2015",
+ "2000",
]
at Object.<anonymous> (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/js/search.test.js:118:55)
at Promise.then.completed (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/run.js:316:40)
at _runTest (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-runner/build/runTest.js:444:34)
Check warning on line 0 in search allows filtering by multiple facets
github-actions / Test Results
search allows filtering by multiple facets (search allows filtering by multiple facets) failed
test-results/jest/results.xml [took 0s]
Raw output
Error: expect(received).toEqual(expected) // deep equality
- Expected - 0
+ Received + 36
@@ -33,6 +33,42 @@
},
"title": Object {
"label": "Legend: The Best of Bob Marley and the Wailers (Remastered)",
},
},
+ Object {
+ "category": Object {
+ "attributes": Object {
+ "label": "POP",
+ },
+ },
+ "id": Object {
+ "attributes": Object {
+ "im:id": "2",
+ },
+ },
+ "im:artist": Object {
+ "label": "The Doors",
+ },
+ "im:name": Object {
+ "label": "The Very Best of The Doors",
+ },
+ "im:price": Object {
+ "attributes": Object {
+ "amount": "19.99",
+ },
+ "label": "$19.99",
+ },
+ "im:releaseDate": Object {
+ "attributes": Object {
+ "label": "January 29, 2008",
+ },
+ "label": "2008-01-29T00:00:00-07:00",
+ },
+ "rights": Object {
+ "label": "℗ 2008 Rhino Entertainment Company, A Warner Music Group Company",
+ },
+ "title": Object {
+ "label": "The Very Best of The Doors",
+ },
+ },
]
at Object.<anonymous> (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/js/search.test.js:128:35)
at Promise.then.completed (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/run.js:316:40)
at _runTest (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-runner/build/runTest.js:444:34)
Check warning on line 0 in search calculate facet counts when filtering by year
github-actions / Test Results
search calculate facet counts when filtering by year (search calculate facet counts when filtering by year) failed
test-results/jest/results.xml [took 0s]
Raw output
Error: expect(received).toEqual(expected) // deep equality
- Expected - 5
+ Received + 45
@@ -34,25 +34,65 @@
},
"title": Object {
"label": "Legend: The Best of Bob Marley and the Wailers (Remastered)",
},
},
+ Object {
+ "category": Object {
+ "attributes": Object {
+ "label": "POP",
+ },
+ },
+ "id": Object {
+ "attributes": Object {
+ "im:id": "2",
+ },
+ },
+ "im:artist": Object {
+ "label": "The Doors",
+ },
+ "im:name": Object {
+ "label": "The Very Best of The Doors",
+ },
+ "im:price": Object {
+ "attributes": Object {
+ "amount": "19.99",
+ },
+ "label": "$19.99",
+ },
+ "im:releaseDate": Object {
+ "attributes": Object {
+ "label": "January 29, 2008",
+ },
+ "label": "2008-01-29T00:00:00-07:00",
+ },
+ "rights": Object {
+ "label": "℗ 2008 Rhino Entertainment Company, A Warner Music Group Company",
+ },
+ "title": Object {
+ "label": "The Very Best of The Doors",
+ },
+ },
],
"facets": Object {
"price": Array [
Object {
- "count": 1,
+ "count": 23,
+ "value": "0 - 5",
+ },
+ Object {
+ "count": 43,
"value": "5 - 10",
},
],
"year": Array [
Object {
- "count": 1,
- "value": "2008",
+ "count": 34,
+ "value": "2015",
},
Object {
- "count": 1,
- "value": "2002",
+ "count": 5,
+ "value": "2000",
},
],
},
}
at Object.<anonymous> (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/js/search.test.js:137:19)
at Promise.then.completed (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/run.js:316:40)
at _runTest (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-runner/build/runTest.js:444:34)
Check warning on line 0 in search calculate facet counts when filtering by multiple facets
github-actions / Test Results
search calculate facet counts when filtering by multiple facets (search calculate facet counts when filtering by multiple facets) failed
test-results/jest/results.xml [took 0s]
Raw output
Error: expect(received).toEqual(expected) // deep equality
- Expected - 8
+ Received + 8
@@ -74,25 +74,25 @@
},
],
"facets": Object {
"price": Array [
Object {
- "count": 1,
- "value": "5 - 10",
+ "count": 23,
+ "value": "0 - 5",
},
Object {
- "count": 1,
- "value": "15 - 20",
+ "count": 43,
+ "value": "5 - 10",
},
],
"year": Array [
Object {
- "count": 1,
- "value": "2008",
+ "count": 34,
+ "value": "2015",
},
Object {
- "count": 1,
- "value": "2002",
+ "count": 5,
+ "value": "2000",
},
],
},
}
at Object.<anonymous> (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/js/search.test.js:163:19)
at Promise.then.completed (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/run.js:316:40)
at _runTest (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/search-coding-interview-javascript/search-coding-interview-javascript/node_modules/jest-runner/build/runTest.js:444:34)
Check notice on line 0 in .github
github-actions / Test Results
9 tests found
There are 9 tests, see "Raw output" for the full list of tests.
Raw output
search allows filtering by multiple facet values ‑ search allows filtering by multiple facet values
search allows filtering by multiple facets ‑ search allows filtering by multiple facets
search allows filtering by one facet value ‑ search allows filtering by one facet value
search calculate facet counts when filtering by multiple facets ‑ search calculate facet counts when filtering by multiple facets
search calculate facet counts when filtering by year ‑ search calculate facet counts when filtering by year
search finds by exact title ‑ search finds by exact title
search finds by keyword ‑ search finds by keyword
search returns price facet for matched documents ‑ search returns price facet for matched documents
search returns year facet for matched documents ‑ search returns year facet for matched documents