test multiple types of line endings (#228)

This commit is contained in:
Jeff Williams 2013-03-23 10:59:50 -07:00
parent 450ea226fa
commit b37f7bcc73

View File

@ -66,7 +66,8 @@ describe("jsdoc/src/parser", function() {
// TODO: more tests? // TODO: more tests?
it("should reflect comment changes made by 'jsdocCommentFound' handlers", function() { it("should reflect comment changes made by 'jsdocCommentFound' handlers", function() {
var source = "javascript:/**\n * replaceme\n * @module foo\n */\n\n" + // we test both POSIX and Windows line endings
var source = "javascript:/**\n * replaceme\r\n * @module foo\n */\n\n" +
"/**\n * replaceme\n */\nvar bar;"; "/**\n * replaceme\n */\nvar bar;";
parser.on('jsdocCommentFound', function(e) { parser.on('jsdocCommentFound', function(e) {