Use getValues for bindings #1927
Annotations
2 errors and 1 warning
tests/src/blocks/remote-data-container/filters/withBlockBinding.test.tsx > withBlockBinding > updates attributes when mismatches are found:
tests/src/blocks/remote-data-container/filters/withBlockBinding.test.tsx#L162
AssertionError: expected "spy" to be called with arguments: [ { attributes: { …(2) }, …(6) }, {} ]
Received:
1st spy call:
[
{
"attributes": {
- "content": "New Title",
+ "content": "Old Title",
"metadata": {
"bindings": {
"content": {
"args": {
"block": "test/block",
"field": "title",
},
"source": "remote-data/binding",
},
},
},
},
"className": "",
"clientId": "test-client-id",
"context": {
"remote-data-blocks/remoteData": {
"blockName": "test/block",
"results": [
{
"result": {
"title": {
"name": "title",
"type": "string",
"value": "New Title",
},
},
"uuid": "0",
},
],
},
},
"isSelected": false,
"name": "test/block",
"setAttributes": [Function spy],
},
{},
]
Number of calls: 1
❯ tests/src/blocks/remote-data-container/filters/withBlockBinding.test.tsx:162:27
|
vitest
Process completed with exit code 1.
|
phpunit (8.3)
Codecov:
Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
|