javascript - Strategy for testing POST to API without changing database -


i'm using jasmine-node test api, , has worked great routes. now, however, need test posts , i'm not sure how go without changing database.

one thought had reset whatever value change @ end of each spec.

is reasonable or there better way go testing post requests api?

wrap modifies database transaction. can have database changes , rollback after each test.


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

Maven Javadoc 'Cannot find default setter' and fails -