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
Post a Comment