node.js - How to test (by jasmine) that a collection exist in my mongo db? -
i'm trying write spec test collections, have, in db. i'm using jasmine test , working on mean stack.
eg: let says have staff, client, commission, ... et cetera. , wanted test collection exists.
thanks time , suggestion (in advance).
create test using mongoose example (https://github.com/klokoy/jasmine-node-mongo-test/blob/master/spec/test.spec.js) , check if collection not contain document (do if nothing found .find() mongoose).
i don't know if test relevant, can it.
Comments
Post a Comment