owncloud-sdk icon indicating copy to clipboard operation
owncloud-sdk copied to clipboard

Matching response data in any order

Open saw-jan opened this issue 2 years ago • 0 comments

The following interaction tries to match the data elements in the provided order: https://github.com/owncloud/owncloud-sdk/blob/aed6a85fdf8a9032d7b06b5c8a3fd24943caf867/tests/sharingTest.js#L125-L138 The server must respond with exactly the same structure and order in order for tests to pass. But the server can respond with the correct data but in different orders so, the tests should not matter the order of the data elements.

[TASK] We need a way to assert the data elements in any order so that the server can respond with data in any order.

Tests: https://github.com/owncloud/owncloud-sdk/blob/aed6a85fdf8a9032d7b06b5c8a3fd24943caf867/tests/sharingTest.js#L504 https://github.com/owncloud/owncloud-sdk/blob/aed6a85fdf8a9032d7b06b5c8a3fd24943caf867/tests/sharingTest.js#L716

saw-jan avatar Jun 14 '22 06:06 saw-jan