Skip to content

Commit e299aed

Browse files
committed
add tests
1 parent 04d2c8e commit e299aed

File tree

3 files changed

+49
-0
lines changed

3 files changed

+49
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//// [tests/cases/conformance/jsdoc/jsdocParseAwait.ts] ////
2+
3+
=== /a.js ===
4+
/**
5+
* @typedef {object} T
6+
* @property {boolean} await
7+
*/
8+
const a = 1;
9+
>a : Symbol(a, Decl(a.js, 4, 5))
10+
11+
/**
12+
* @param {boolean} await
13+
*/
14+
function b() {}
15+
>b : Symbol(b, Decl(a.js, 4, 12))
16+
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
//// [tests/cases/conformance/jsdoc/jsdocParseAwait.ts] ////
2+
3+
=== /a.js ===
4+
/**
5+
* @typedef {object} T
6+
* @property {boolean} await
7+
*/
8+
const a = 1;
9+
>a : 1
10+
>1 : 1
11+
12+
/**
13+
* @param {boolean} await
14+
*/
15+
function b() {}
16+
>b : () => void
17+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// @allowJs: true
2+
// @checkJs: true
3+
// @noEmit: true
4+
5+
// @Filename: /a.js
6+
7+
/**
8+
* @typedef {object} T
9+
* @property {boolean} await
10+
*/
11+
const a = 1;
12+
13+
/**
14+
* @param {boolean} await
15+
*/
16+
function b() {}

0 commit comments

Comments
 (0)