From 89488f83171a0eb9118e825b86410cab88dca4c6 Mon Sep 17 00:00:00 2001 From: Andy Hanson Date: Mon, 13 Jun 2016 12:08:31 -0700 Subject: [PATCH] Add test for jsdoc in navigation bar --- tests/cases/fourslash/navigationBarJsDoc.ts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/cases/fourslash/navigationBarJsDoc.ts diff --git a/tests/cases/fourslash/navigationBarJsDoc.ts b/tests/cases/fourslash/navigationBarJsDoc.ts new file mode 100644 index 0000000000000..20a235bce9505 --- /dev/null +++ b/tests/cases/fourslash/navigationBarJsDoc.ts @@ -0,0 +1,21 @@ +/// + +// @Filename: foo.js +/////** @typedef {(number|string)} NumberLike */ +/////** @typedef {(string|number)} */ +////const x = 0; + +verify.navigationBar([ + { + "text": "NumberLike", + "kind": "type" + }, + { + "text": "x", + "kind": "type" + }, + { + "text": "x", + "kind": "var" + } +]);