mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-16 07:13:45 -05:00
revert change of trailing comment parsing
This commit is contained in:
@@ -28,22 +28,5 @@ namespace ts {
|
||||
assert.strictEqual(result!.length, 1);
|
||||
assert.strictEqual(result![0].kind, SyntaxKind.SingleLineCommentTrivia);
|
||||
});
|
||||
|
||||
it("returns no trailing comments at start of file", () => {
|
||||
const result = getTrailingCommentRanges(noShebang, 0);
|
||||
assert.isUndefined(result);
|
||||
});
|
||||
|
||||
it("returns no trailing comments at start of file if shebang is present", () => {
|
||||
const result = getTrailingCommentRanges(withShebang, 0);
|
||||
assert.isUndefined(result);
|
||||
});
|
||||
|
||||
it("returns trailing comments if position is not 0", () => {
|
||||
const result = getTrailingCommentRanges(withTrailing, 1);
|
||||
assert.isDefined(result);
|
||||
assert.strictEqual(result!.length, 1);
|
||||
assert.strictEqual(result![0].kind, SyntaxKind.MultiLineCommentTrivia);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user