title: Why is this not recommended way of checking lengthOf() array in chai?
body: <p>Im looking over Chai <a href="https://www.chaijs.com/api/bdd/#method_most" rel="nofollow noreferrer">documentation</a> and im wondering because on site i don't see any explanation why is this not recommended way of doing this. What can go wrong using this and what's bad about it? </p>
  
  <p>I'm testing my API calls if it returns 100 objects in array. Since i don't have so many entrys in my database, i want to use this code.</p>
  
  <p>Code example on Chai site:</p>
  
  <pre><code>expect('foo').to.have.lengthOf(3); // Recommended
  expect('foo').to.have.lengthOf.at.most(4); // Not recommended
  </code></pre>
  
  <p>My test example:</p>
  
  <pre><code>it('should return 100 object by default, if limit set to 0', (done) =&gt; {
    chai.request(server)
      .get('/api/v1/assets?limit=0')
      .then((res) =&gt; {
        expect(res).to.have.status(200);
        expect(res.body).to.be.a('array');
        expect(res.body).to.have.lengthOf.at.most(100);
        done();
      })
      .catch((err) =&gt; {
        done(err)
      })
  });
  </code></pre>