mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-10 01:43:59 -05:00
Add tests
This commit is contained in:
14
tests/cases/fourslash/getOccurrencesOfDecorators.ts
Normal file
14
tests/cases/fourslash/getOccurrencesOfDecorators.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
// @Filename: b.ts
|
||||
////@/*1*/decorator
|
||||
////class C {
|
||||
//// @decorator
|
||||
//// method() {}
|
||||
////}
|
||||
////function decorator(target) {
|
||||
//// return target;
|
||||
////}
|
||||
|
||||
goTo.marker("1");
|
||||
verify.occurrencesAtPositionCount(3);
|
||||
11
tests/cases/fourslash/quickInfoForDecorators.ts
Normal file
11
tests/cases/fourslash/quickInfoForDecorators.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
////@/*1*/decorator
|
||||
////class C {
|
||||
|
||||
////}
|
||||
/////** decorator documentation*/
|
||||
////var decorator = t=> t;
|
||||
|
||||
goTo.marker("1");
|
||||
verify.quickInfoIs("var decorator: (t: any) => any", "decorator documentation");
|
||||
Reference in New Issue
Block a user