owncloud-sdk
owncloud-sdk copied to clipboard
Matching response data in any order
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