(#4724) - "views" in design documents take a map function
(#4724) - "views" in design documents take a map function

Before, the above code caused couchDB to return an error http status code.

This is because the example map function was not in the "map" key in the design
document. Therefore Couch saved a view without a map function, aka the
`views` property when querying couch for the document showed just an empty
object.

[skip ci]

pouchdb/pouchdb,cdaringe/pouchdb,bbenezech/pouchdb,mikeymckay/pouchdb,seigel/pouchdb,jhs/pouchdb,colinskow/pouchdb,willholley/pouchdb,jhs/pouchdb,seigel/pouchdb,cdaringe/pouchdb,colinskow/pouchdb,tyler-johnson/pouchdb,garrensmith/pouchdb,yaronyg/pouchdb,nickcolley/pouchdb,lukevanhorn/pouchdb,jhs/pouchdb,yaronyg/pouchdb,cdaringe/pouchdb,seigel/pouchdb,tyler-johnson/pouchdb,yaronyg/pouchdb,shimaore/pouchdb,colinskow/pouchdb,TechnicalPursuit/pouchdb,lukevanhorn/pouchdb,lukevanhorn/pouchdb,nickcolley/pouchdb,willholley/pouchdb,garrensmith/pouchdb,TechnicalPursuit/pouchdb,mikeymckay/pouchdb,pouchdb/pouchdb,willholley/pouchdb,pouchdb/pouchdb,shimaore/pouchdb,daleharvey/pouchdb,tyler-johnson/pouchdb,nickcolley/pouchdb,daleharvey/pouchdb,bbenezech/pouchdb,garrensmith/pouchdb,TechnicalPursuit/pouchdb,bbenezech/pouchdb,mikeymckay/pouchdb,shimaore/pouchdb,daleharvey/pouchdb