title: Unit testing Solidity JS
body: <p>I want to test these 3 different require in my mint function with Javascript.</p>
  <pre><code>function mint(uint256 _mintAmount) public payable {
      require(_mintAmount &gt; 0, &quot;need to mint at least 1 NFT&quot;);
      require(_mintAmount &lt;= maxMintAmount, &quot;max mint amount per session exceeded&quot;);
      require(supply + _mintAmount &lt;= maxSupply, &quot;max NFT limit exceeded&quot;);
  </code></pre>
  <p>I'm really new to testing so I tried something like this. obviously its wrong but how can I test that _mintAmount &lt;= maxMintAmount in a function like this</p>
  <pre><code>it('mint amount', async () =&gt;{
      _mintAmount &gt; 0;
      _mintAmount &lt;= maxMintAmount;
      supply + _mintAmount &lt;= maxSupply;
  })
  </code></pre>