From 059982c59498d3404a357660fb5cca2396b5412a Mon Sep 17 00:00:00 2001 From: marshalys Date: Tue, 18 Oct 2016 08:58:40 +0800 Subject: [PATCH] fix unit test error on macOS because line ending on macOS is '\r' --- test/apidoc_test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/apidoc_test.js b/test/apidoc_test.js index 958590d..86640ab 100644 --- a/test/apidoc_test.js +++ b/test/apidoc_test.js @@ -94,7 +94,8 @@ describe('apiDoc full parse', function() { }); api = apidoc.parse({ - src: exampleBasePath + '/src/' + src: exampleBasePath + '/src/', + lineEnding: '\n' }); if (api === false)