在mocha测试中加载mongoose模型

时间:2016-09-15 13:27:06

标签: inheritance mongoose mocha mean-stack discriminator

我想创建父类Formspree的子类。我创建了一个端点<form action="https://formspree.io/XXXXXXXX" method="post"> <input name="_gotcha" style="display: none" type="text"> <input class="form-control input-lg" name="firstname" placeholder="First Name" required type="text"> <input class="form-control input-lg" name="lastname" placeholder="Last name" required type="text"> <input class="form-control input-lg" name="phone" placeholder="Phone number" required type="text"> <select required name="country" class="form-control input-lg" style="border-radius:none; -webkit-appearance: none; padding-top:0px;"> <option value="" disabled selected>Please select your country </option> <option value="Afganistan">Afghanistan</option> <option value="Albania">Albania</option> <option value="other">Not in the List</option> <!-- etc --> </select> <input type="hidden" name="referrer" id="referrer_field" /> <input type="hidden" name="url" id="url_field" /> <button id="demo" type="submit">GO</button> ,一切都在开发中很有用。但是,在测试中,根本没有导入Person

我如何才能确保正确导入Person?

Customer

0 个答案:

没有答案