TypeScript/tests/cases/fourslash/findAllRefsModuleDotExports.ts

13 lines
325 B
TypeScript
Raw Normal View History

/// <reference path='fourslash.ts' />
// @allowJs: true
// @Filename: /a.js
2019-06-13 21:25:02 +02:00
////[|const b = require("[|{| "contextRangeIndex": 0 |}./b|]");|]
// @Filename: /b.js
2019-06-13 21:25:02 +02:00
////[|[|{| "contextRangeIndex": 2 |}module|].exports = 0;|]
2019-06-06 21:51:26 +02:00
const [r0Def, r0, rDef, r1] = test.ranges();
2019-06-06 00:01:34 +02:00
verify.singleReferenceGroup('module "/b"', [r0, r1]);