emilygilberts commented on code in PR #9176:
URL: https://github.com/apache/pouchdb/pull/9176#discussion_r3027810159
##########
tests/mapreduce/test.mapreduce.js:
##########
@@ -1335,71 +1225,69 @@ function tests(suiteName, dbName, dbType, viewType) {
}
});
}
- return db.bulkDocs(docs).then(function () {
- return createView(db, {
- map: function (doc) {
- emit(doc._id);
+ await db.bulkDocs(docs);
+
+ const queryFun = await createView(db, {
+ map: doc => emit(doc._id)
Review Comment:
Actually, could it be a problem in some setups that I changes the map
function to an arrow function? It will be converted to a string in the
createView function:
```
const storableViewObj = {
map: `${viewObj.map}`
};
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]