test(30680): add tests #3049
Annotations
3 errors
🧪 Run Test:
hivemq-edge/src/frontend/src/api/hooks/useCombiners/useListCombinerMappings.spec.ts#L28
AssertionError: expected { items: [ { …(4) } ] } to strictly equal { items: [ { …(4) } ] }
- Expected
+ Received
{
"items": [
{
- "destination": "my/topic",
+ "destination": {
+ "topic": "my/topic",
+ },
"id": "58677276-fc48-4a9a-880c-41c755f5063b",
"instructions": [],
"sources": {
"primary": "",
"primaryType": "TAG",
"tags": [],
"topicFilters": [],
},
},
],
}
❯ src/api/hooks/useCombiners/useListCombinerMappings.spec.ts:28:33
|
🧪 Run Test:
hivemq-edge/src/frontend/src/api/hooks/useCombiners/useListCombiners.spec.ts#L29
AssertionError: expected { items: [ { …(4) }, { …(3) }, …(1) ] } to strictly equal { items: [ { …(4) }, { …(3) }, …(1) ] }
- Expected
+ Received
{
"items": [
{
"id": "6991ff43-9105-445f-bce3-976720df40a3",
"mappings": {
"items": [
{
- "destination": "my/first/topic",
+ "destination": {
+ "topic": "my/first/topic",
+ },
"id": "3b028f58-f949-4de1-9b8b-c1a35b1643a4",
"instructions": [],
"sources": {
"primary": "",
"primaryType": "TAG",
"tags": [
"my/tag/t1",
"my/tag/t3",
],
"topicFilters": [
"my/topic/+/temp",
],
},
},
{
- "destination": "my/other/topic",
+ "destination": {
+ "topic": "my/other/topic",
+ },
"id": "c02a9d0f-02cb-4ff0-a7b4-6e1a16b08722",
"instructions": [],
"sources": {
"primary": "",
"primaryType": "TAG",
"tags": [],
"topicFilters": [],
},
},
],
},
"name": "my-combiner",
"sources": {
"items": ArrayContaining [
{
"id": "my-adapter",
"type": "ADAPTER",
},
{
"id": "my-other-adapter",
"type": "ADAPTER",
},
],
},
},
{
"id": "5e08d9f3-113d-46f2-8418-9a8bf980cc10",
"name": "fake1",
"sources": {
"items": [],
},
},
{
"id": "2d2ec927-1ff5-4e1a-b307-ab135cc189fd",
"name": "fake2",
"sources": {
"items": [
{
"id": "444",
"type": "ADAPTER",
},
],
},
},
],
}
❯ src/api/hooks/useCombiners/useListCombiners.spec.ts:29:33
|
🧪 Run Test
Process completed with exit code 1.
|
Loading