i have a small crud application and i am using unit testing with jasmine but im having issues with my errors, after some work on it i realised the only api that is tested is the one that is loaded last so for example admins app below will be the only one working:
<script src="../js/app.js"></script>
<script src="../js/PublishersApp.js"></script>
<script src="../js/AuthorsApp.js"></script>
<script src="../js/AdminsApp.js"></script> // this will be working
<!-- include spec files here... -->
<script src="../js/mock.requests.js"></script>
<script src="../js/publisher.spec.js"></script>
<script src="../js/authors.spec.js"></script>
<script src="../js/admin.spec.js"></script>
does anyone know how to fix this? i am completely new to Jasmine so apologies if this is very simple
Aucun commentaire:
Enregistrer un commentaire