div class='highlight'><pre>    goodResult = <span class="hljs-keyword">new</span> Result

    sampleMethod goodResult, <span class="hljs-string">'good'</span>
    .<span class="hljs-keyword">then</span> -&gt;

      expect(goodResult.isError).toBeFalsy()
      expect(goodResult.messages).sameStructure []

      done() <span class="hljs-keyword">if</span> --c == <span class="hljs-number">0</span>

      <span class="hljs-keyword">return</span></pre></div></div>
            
        </li>
        
     