<span class="hljs-keyword">then</span> (<span class="hljs-function">-&gt;</span> <span class="hljs-keyword">return</span>), <span class="hljs-function">-&gt;</span>

      expect(badResult.isError).toBeTruthy()
      expect(badResult.messages).sameStructure [{type: <span class="hljs-string">'error'</span>, code: <span class="hljs-string">'invalidArg'</span>, arg: <span class="hljs-string">'arg1'</span>, value: <span class="hljs-string">'bad'</span>}]

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