chris-l / mock-couch

A node.js module designed to mock a CouchDB server, mostly for unit testing purposes.
http://chris-l.github.io/mock-couch/
67 stars 44 forks source link

Support for linked document in views #14

Closed monowerker closed 9 years ago

monowerker commented 9 years ago

If the value for the _id key in the emitted value is different from the doc._id being evaluated, attach that document as the result.doc instead.

chris-l commented 9 years ago

Ohhh, I didn't knew that feature!

About your patch, travis CI failed. Can you fix it, so when you do npm test, it passes? (By a quick look at the code, I guess is because you are using != instead of !==)

monowerker commented 9 years ago

I'll try and update my branch so the CI passes when I have some free time.