fix string to genericType tests #11272
Annotations
10 errors
Test:
packages/legend-query-builder/src/components/__tests__/QueryBuilderFetchStructure.test.tsx#L1520
expect(received).toStrictEqual(expected) // deep equality
- Expected - 16
+ Received + 2
@@ -26,18 +26,11 @@
"upperBound": 1,
},
"type": "rootGraphFetchTree",
"value": Object {
"_type": "rootGraphFetchTree",
- "genericType": Object {
- "rawType": Object {
- "_type": "packageableType",
- "fullPath": "model::Person",
- },
- "typeArguments": Array [],
- "typeVariableValues": Array [],
- },
+ "class": "model::Person",
"subTrees": Array [
Object {
"_type": "propertyGraphFetchTree",
"parameters": Array [],
"property": "address",
@@ -80,18 +73,11 @@
"upperBound": 1,
},
"type": "rootGraphFetchTree",
"value": Object {
"_type": "rootGraphFetchTree",
- "genericType": Object {
- "rawType": Object {
- "_type": "packageableType",
- "fullPath": "model::Person",
- },
- "typeArguments": Array [],
- "typeVariableValues": Array [],
- },
+ "class": "model::Person",
"subTrees": Array [
Object {
"_type": "propertyGraphFetchTree",
"parameters": Array [],
"property": "address",
at Object.toStrictEqual (packages/legend-query-builder/src/components/__tests__/QueryBuilderFetchStructure.test.tsx:1520:7)
|
Test:
packages/legend-query-builder/src/stores/__tests__/QueryBuilderBuildLambdaRoundtrip.test.tsx#L830
expect(received).toEqual(expected) // deep equality
- Expected - 8
+ Received + 1
@@ -236,18 +236,11 @@
},
],
"parameters": Array [
Object {
"_type": "var",
- "genericType": Object {
- "rawType": Object {
- "_type": "packageableType",
- "fullPath": "String",
- },
- "typeArguments": Array [],
- "typeVariableValues": Array [],
- },
+ "class": "String",
"multiplicity": Object {
"lowerBound": 1,
"upperBound": 1,
},
"name": "param1",
at toEqual (packages/legend-query-builder/src/stores/__tests__/QueryBuilderBuildLambdaRoundtrip.test.tsx:830:24)
|
Test:
packages/legend-query-builder/src/stores/__tests__/QueryBuilderBuildLambdaRoundtrip.test.tsx#L830
expect(received).toEqual(expected) // deep equality
- Expected - 8
+ Received + 1
@@ -188,18 +188,11 @@
},
],
"parameters": Array [
Object {
"_type": "var",
- "genericType": Object {
- "rawType": Object {
- "_type": "packageableType",
- "fullPath": "StrictDate",
- },
- "typeArguments": Array [],
- "typeVariableValues": Array [],
- },
+ "class": "StrictDate",
"multiplicity": Object {
"lowerBound": 1,
"upperBound": 1,
},
"name": "var_1",
at toEqual (packages/legend-query-builder/src/stores/__tests__/QueryBuilderBuildLambdaRoundtrip.test.tsx:830:24)
|
Test:
packages/legend-query-builder/src/stores/__tests__/QueryBuilderBuildLambdaRoundtrip.test.tsx#L830
expect(received).toEqual(expected) // deep equality
- Expected - 8
+ Received + 1
@@ -293,18 +293,11 @@
},
],
"parameters": Array [
Object {
"_type": "var",
- "genericType": Object {
- "rawType": Object {
- "_type": "packageableType",
- "fullPath": "StrictDate",
- },
- "typeArguments": Array [],
- "typeVariableValues": Array [],
- },
+ "class": "StrictDate",
"multiplicity": Object {
"lowerBound": 1,
"upperBound": 1,
},
"name": "var_1",
at toEqual (packages/legend-query-builder/src/stores/__tests__/QueryBuilderBuildLambdaRoundtrip.test.tsx:830:24)
|
Test:
packages/legend-query-builder/src/stores/__tests__/QueryBuilderBuildLambdaRoundtrip.test.tsx#L830
expect(received).toEqual(expected) // deep equality
- Expected - 8
+ Received + 1
@@ -240,18 +240,11 @@
},
],
"parameters": Array [
Object {
"_type": "var",
- "genericType": Object {
- "rawType": Object {
- "_type": "packageableType",
- "fullPath": "StrictDate",
- },
- "typeArguments": Array [],
- "typeVariableValues": Array [],
- },
+ "class": "StrictDate",
"multiplicity": Object {
"lowerBound": 1,
"upperBound": 1,
},
"name": "var_1",
at toEqual (packages/legend-query-builder/src/stores/__tests__/QueryBuilderBuildLambdaRoundtrip.test.tsx:830:24)
|
Test:
packages/legend-query-builder/src/stores/__tests__/QueryBuilderBuildLambdaRoundtrip.test.tsx#L830
expect(received).toEqual(expected) // deep equality
- Expected - 8
+ Received + 1
@@ -319,18 +319,11 @@
},
],
"parameters": Array [
Object {
"_type": "var",
- "genericType": Object {
- "rawType": Object {
- "_type": "packageableType",
- "fullPath": "StrictDate",
- },
- "typeArguments": Array [],
- "typeVariableValues": Array [],
- },
+ "class": "StrictDate",
"multiplicity": Object {
"lowerBound": 1,
"upperBound": 1,
},
"name": "var_1",
at toEqual (packages/legend-query-builder/src/stores/__tests__/QueryBuilderBuildLambdaRoundtrip.test.tsx:830:24)
|
Test:
packages/legend-query-builder/src/components/__tests__/QueryBuilderHighlightExplorerTreeUsedProperty.test.tsx#L222
Unable to find an element by: [data-testid="query__builder__explorer"]
Ignored nodes: comments, script, style
<body
class="theme__default-dark"
>
<div>
<div
class="virtual-assistant react-draggable"
style="transform: translate(0px,0px);"
>
<div
class="virtual-assistant__station virtual-assistant__station--hidden"
>
<button
class="virtual-assistant__station__hide-button"
title="Hide assistant"
>
<svg
fill="currentColor"
height="1em"
stroke="currentColor"
stroke-width="0"
viewBox="0 0 512 512"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zM124 296c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h264c6.6 0 12 5.4 12 12v56c0 6.6-5.4 12-12 12H124z"
/>
</svg>
</button>
<button
class="virtual-assistant__station__trigger"
tabindex="-1"
title="Click to open Assistant..."
>
<div
class="virtual-assistant__station__character"
>
<svg
class="virtual-assistant__station__character__hat"
fill="currentColor"
height="1em"
stroke="currentColor"
stroke-width="0"
viewBox="0 0 512 512"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M496 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h480c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm-304-64l-64-32 64-32 32-64 32 64 64 32-64 32-16 32h208l-86.41-201.63a63.955 63.955 0 0 1-1.89-45.45L416 0 228.42 107.19a127.989 127.989 0 0 0-53.46 59.15L64 416h144l-16-32zm64-224l16-32 16 32 32 16-32 16-16 32-16-32-32-16 32-16z"
/>
</svg>
<svg
class="virtual-assistant__station__character__glasses"
fill="currentColor"
height="1em"
stroke="currentColor"
stroke-width="0"
viewBox="0 0 512 512"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M131.127 175.44c-33.59.04-59.132 7.456-86.086 15.046-8.453 1.495-15.128 3.99-18.638 10.47-3.532 6.524-1.073 13.252 1.537 17.888 4.818 8.555 12.362 16.51 15.298 21.703 3.465 17.812 8.065 35.346 15.467 50.7 12.98 26.928 36.845 47.046 74.7 45.194 46.849-2.29 73.352-20.134 87.503-41.22 14.152-21.088 16.572-44.617 19.54-56.484 7.612-16.64 23.278-16.838 31.105 0 2.967 11.867 5.387 35.396 19.54 56.483 14.15 21.086 40.654 38.93 87.503 41.22 37.854 1.853 61.72-18.265 74.7-45.192 7.403-15.355 12-32.89 15.466-50.7 2.936-5.195 10.48-13.15 15.3-21.704 2.61-4.636 5.068-11.364 1.536-17.887-3.51-6.48-10.185-8.976-18.64-10.47-26.953-7.59-52.495-15.007-86.085-15.048-26.88-.033-58.915 4.656-100.97 17.753l-5.507 1.715c-18.397 3.264-18.395 3.264-36.792 0l-5.506-1.715c-42.056-13.097-74.092-17.786-100.97-17.754zm.146 16.55c23.79.02 52.275 4.346 90.288 15.772 2.44 6.41 5.193 17.415 2.118 28.304-3.397 14.196-5.85 33.31-16.85 49.704-11.352 16.916-31.195 31.63-74.25 33.736-32.043 1.568-47.433-12.454-58.6-35.62-6.38-13.23-10.624-29.463-13.982-46.6l.037-.01-4.05-32.26c24.43-6.927 46.61-13.05 75.29-13.026zm249.452 0c28.68-.023 50.863 6.098 75.293 13.026l-4.05 32.26.036.01c-3.358 17.137-7.603 33.37-13.98 46.6-11.17 23.166-26.56 37.188-58.602 35.62-43.055-2.107-62.9-16.82-74.252-33.736-11-16.393-13.45-35.508-16.848-49.704-2.605-13.286-.322-21.894 2.115-28.304 38.013-11.426 66.497-15.752 90.288-15.772zM133.94 202.52c-18.563.07-37.993 3.335-53.94 11.652-12.87 42.026 3.515 64 16 80 1.317-37.663-15.127-81.69 96-80-11.76-6.544-34.194-11.74-58.06-11.65zm231.88 0c-18.563.07-37.992 3.335-53.94 11.652-12.87 42.026 3.515 64 16 80 1.317-37.663-15.126-81.69 96-80-11.76-6.544-34.193-11.74-58.06-11.65z"
/>
</svg>
<svg
|
Test:
packages/legend-query-builder/src/stores/__tests__/QueryBuilderProcessingRoundtrip.test.ts#L269
expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 8
@@ -236,11 +236,18 @@
},
],
"parameters": Array [
Object {
"_type": "var",
- "class": "String",
+ "genericType": Object {
+ "rawType": Object {
+ "_type": "packageableType",
+ "fullPath": "String",
+ },
+ "typeArguments": Array [],
+ "typeVariableValues": Array [],
+ },
"multiplicity": Object {
"lowerBound": 1,
"upperBound": 1,
},
"name": "param1",
at toEqual (packages/legend-query-builder/src/stores/__tests__/QueryBuilderProcessingRoundtrip.test.ts:269:27)
|
Test:
packages/legend-graph/src/graph-manager/__test-utils__/GraphManagerTestUtils.ts#L120
expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Array [
- "genericType",
"multiplicity",
"name",
+ "genericType",
]
at toEqual (packages/legend-graph/src/graph-manager/__test-utils__/GraphManagerTestUtils.ts:120:33)
at checkObjectFieldsAreSortedAlphabetically (packages/legend-graph/src/graph-manager/__test-utils__/GraphManagerTestUtils.ts:114:11)
at Array.forEach (<anonymous>)
at forEach (packages/legend-graph/src/graph-manager/__test-utils__/GraphManagerTestUtils.ts:112:12)
at checkObjectFieldsAreSortedAlphabetically (packages/legend-graph/src/graph-manager/__test-utils__/GraphManagerTestUtils.ts:135:13)
at checkObjectFieldsAreSortedAlphabetically (packages/legend-graph/src/graph-manager/__test-utils__/GraphManagerTestUtils.ts:143:3)
at TEST__ensureObjectFieldsAreSortedAlphabetically (packages/legend-graph/src/graph-manager/__test-utils__/GraphManagerTestUtils.ts:206:5)
at Array.forEach (<anonymous>)
at forEach (packages/legend-graph/src/graph-manager/__test-utils__/GraphManagerTestUtils.ts:205:23)
at packages/legend-graph/src/graph-manager/__tests__/ImportResolutionRoundtrip.test.ts:82:5
|
Test:
packages/legend-graph/src/graph-manager/__test-utils__/GraphManagerTestUtils.ts#L120
expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Array [
- "genericType",
"multiplicity",
"name",
+ "genericType",
]
at toEqual (packages/legend-graph/src/graph-manager/__test-utils__/GraphManagerTestUtils.ts:120:33)
at checkObjectFieldsAreSortedAlphabetically (packages/legend-graph/src/graph-manager/__test-utils__/GraphManagerTestUtils.ts:114:11)
at Array.forEach (<anonymous>)
at forEach (packages/legend-graph/src/graph-manager/__test-utils__/GraphManagerTestUtils.ts:112:12)
at checkObjectFieldsAreSortedAlphabetically (packages/legend-graph/src/graph-manager/__test-utils__/GraphManagerTestUtils.ts:135:13)
at checkObjectFieldsAreSortedAlphabetically (packages/legend-graph/src/graph-manager/__test-utils__/GraphManagerTestUtils.ts:143:3)
at TEST__ensureObjectFieldsAreSortedAlphabetically (packages/legend-graph/src/graph-manager/__test-utils__/GraphManagerTestUtils.ts:206:5)
at Array.forEach (<anonymous>)
at forEach (packages/legend-graph/src/graph-manager/__test-utils__/GraphManagerTestUtils.ts:205:23)
at packages/legend-graph/src/graph-manager/__tests__/ImportResolutionRoundtrip.test.ts:82:5
|
Loading