How to assert that Set contains the required values with should.js?
<p>I am using the <a href="https://shouldjs.github.io/" rel="nofollow">should.js</a> library for assertions in my unit tests and was wondering how I would go about asserting that the contents of a <code>Set</code> matches the expectation.</p>

<pre><code>let actualValues = new Set();
actualValues.add(2);
actualValues.add(4);
actualValues.add(6);

actualValues.should.be....... ?
</code></pre>

<p>My first instinct was to use <code>Array.from(actualValues)</code> and then compare that with the expected values; but naturally the ordering of <code>actualValues</code> is undefined since it's a <code>Set</code>.</p>

<p>The following works; but it seems quite verbose:</p>

<pre><code>actualValues.size.should.be.eql(3);
actualValues.has(2).should.be.true();
actualValues.has(4).should.be.true();
actualValues.has(6).should.be.true();
</code></pre>