mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-20 05:17:43 -05:00
add tests for trivia
This commit is contained in:
11
tests/cases/fourslash/unusedClassInNamespaceWithTrivia.ts
Normal file
11
tests/cases/fourslash/unusedClassInNamespaceWithTrivia.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
// @noUnusedLocals: true
|
||||
//// [| namespace greeter {
|
||||
//// /* comment1 */
|
||||
//// class /* comment2 */ class1 {
|
||||
//// }
|
||||
//// } |]
|
||||
|
||||
verify.rangeAfterCodeFix(`namespace greeter {
|
||||
}`, /*includeWhiteSpace*/ false, /*errorCode*/ undefined, /*index*/ 0);
|
||||
@@ -0,0 +1,14 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
// @noUnusedLocals: true
|
||||
//// [| namespace greeter {
|
||||
//// /* comment1 */
|
||||
//// class /* comment2 */ class1 {
|
||||
//// }
|
||||
//// } |]
|
||||
|
||||
verify.rangeAfterCodeFix(`namespace greeter {
|
||||
/* comment1 */
|
||||
class /* comment2 */ _class1 {
|
||||
}
|
||||
}`, /*includeWhiteSpace*/ false, /*errorCode*/ undefined, /*index*/ 1);
|
||||
Reference in New Issue
Block a user