; {
  const set = { $set: { done: ctx.data.done } };
  await Todo.findByIdAndUpdate(ctx.params.id, set).exec();
  return Todo.find().sort(&#39;done&#39;).lean().exec();
};

exports.delete = async (ctx) =&gt; {
  return Todo.findByIdAndRemove(ctx.params.id).exec();
};
</code></pre>
<h2 id="testing">Testing</h2>
<blockquote class="error">This section describes a future API and **it is not available yet**. Now please use more traditional testing method.</blockquote>

<p>We will be using <a href="https://facebo