```js
expect(publicKeys.sort()).to.be.eql(userKeys.sort());
```

in our unit tests for the Marketplace API, we have a helper called [`assertSetEqual`](https://github.com/mozilla/zamboni/blob/master/apps/amo/tests/__init__.py#L410-L419) which takes any Python iterable (usually a `list`), converts it to a `set`, and compares the length of each. you could do something similar here in JS for arrays, but in this particular case of objects, comparing the sorted keys of each is what you want.