jo / couchdb-compile

Build CouchDB documents from directory, JSON or CommonJS module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Test failures on Windows

jo opened this issue · comments

not ok 12 should have compiled correct result
  ---
    operator: deepEqual
    expected:
      { _attachments: { attachment: { content_type: 'application/octet-stream', data: 'SGVsbG8gV29ybGQhCg==' } }, _id: '_design/attachment'}
    actual:
      { _attachments: { attachment: { content_type: 'application/octet-stream', data: 'SGVsbG8gV29ybGQhDQo=' } }, _id: '_design/attachment'}
  ...

and

not ok 14 should have compiled correct result
  ---
    operator: deepEqual
    expected:
      { _id: '_design/full', language: 'javascript', views: { numbers: { map: 'function(doc) {\n  if (doc.number) {\n    emit(doc.number, null);\n  }\n}', reduce: '_count' } } }
    actual:
      { _id: '_design/full', language: 'javascript', views: { numbers: { map: 'function(doc) {\r\n  if (doc.number) {\r\n    emit(doc.number, null);\r\n  }\r\n}', reduce: '_count' } } }
  ...

This is because of the \r