mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
test multiple types of line endings (#228)
This commit is contained in:
parent
450ea226fa
commit
b37f7bcc73
@ -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) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user