Json option in table #1280
Annotations
5 errors and 1 warning
test
@data-story/ui#test: command (/home/runner/work/data-story/data-story/packages/ui) yarn run test exited (1)
|
src/components/Node/table/ItemCollection.test.ts > toTable > should correctly extract headers and rows from 3 nested Object:
packages/ui/src/components/Node/table/ItemCollection.test.ts#L41
AssertionError: expected [ 'foo1', 'foo2', 'foo3' ] to deeply equal [ 'foo1', 'foo2', 'foo3', …(5) ]
- Expected
+ Received
Array [
"foo1",
"foo2",
"foo3",
- "foo3.foo1",
- "foo3.foo2",
- "foo3.foo3.foo1",
- "foo3.foo3.foo2",
- "foo3.foo3.foo3",
]
❯ src/components/Node/table/ItemCollection.test.ts:41:21
|
src/components/Node/table/ItemCollection.test.ts > toTable > should correctly extract headers and rows from nested JSON data:
packages/ui/src/components/Node/table/ItemCollection.test.ts#L48
AssertionError: expected [ 'objectId', 'properties', …(6) ] to deeply equal [ 'objectId', …(12) ]
- Expected
+ Received
Array [
"objectId",
- "properties.firstname",
- "properties.lastname",
- "properties.email",
+ "properties",
"createdAt",
"updatedAt",
- "associations.contacts",
+ "associations",
"booleanFalse",
"booleanTrue",
- "address.street",
- "address.city",
- "address.state",
- "address.zipcode",
+ "address",
]
❯ src/components/Node/table/ItemCollection.test.ts:48:21
|
src/components/Node/table/ItemCollection.test.ts > toTable > should handle nullable objects filled and not filled:
packages/ui/src/components/Node/table/ItemCollection.test.ts#L111
AssertionError: expected [ 'name', 'age' ] to deeply equal [ 'name.first', 'name.last', …(2) ]
- Expected
+ Received
Array [
- "name.first",
- "name.last",
+ "name",
"age",
- "name",
]
❯ src/components/Node/table/ItemCollection.test.ts:111:21
|
test
Process completed with exit code 1.
|
test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|