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

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -