jo / couchdb-compile

Build CouchDB documents from directory, JSON or CommonJS module
Other
38 stars 11 forks source link

Test failures on Windows #10

Open jo opened 9 years ago

jo commented 9 years ago
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' } } }
  ...
jo commented 9 years ago

This is because of the \r