From d6701d3987ffc0b31d8880791c7cd9d0129926a5 Mon Sep 17 00:00:00 2001 From: Andy Date: Mon, 7 May 2018 11:06:21 -0700 Subject: [PATCH] Replace `verify.rangesReferenceEachOther` with `verify.singleReferenceGroup` (#23933) --- tests/cases/fourslash/findAllRefsImportType.ts | 2 +- tests/cases/fourslash/findAllRefsTypedef_importType.ts | 2 +- .../fourslash/findAllRefs_importType_meaningAtLocation.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/cases/fourslash/findAllRefsImportType.ts b/tests/cases/fourslash/findAllRefsImportType.ts index dda48580b66..9f1fa09436e 100644 --- a/tests/cases/fourslash/findAllRefsImportType.ts +++ b/tests/cases/fourslash/findAllRefsImportType.ts @@ -9,4 +9,4 @@ // @Filename: /b.js ////type T = import("./a").[|N|]; -verify.rangesReferenceEachOther(); +verify.singleReferenceGroup("type N = number"); diff --git a/tests/cases/fourslash/findAllRefsTypedef_importType.ts b/tests/cases/fourslash/findAllRefsTypedef_importType.ts index a9104fb398e..ddd0cb7c966 100644 --- a/tests/cases/fourslash/findAllRefsTypedef_importType.ts +++ b/tests/cases/fourslash/findAllRefsTypedef_importType.ts @@ -11,4 +11,4 @@ /////** @type {import('./a').[|Foo|]} */ ////const x = 0; -verify.rangesReferenceEachOther(); +verify.singleReferenceGroup("type Foo = number"); diff --git a/tests/cases/fourslash/findAllRefs_importType_meaningAtLocation.ts b/tests/cases/fourslash/findAllRefs_importType_meaningAtLocation.ts index 21cc1afebb0..4bb5cb27a17 100644 --- a/tests/cases/fourslash/findAllRefs_importType_meaningAtLocation.ts +++ b/tests/cases/fourslash/findAllRefs_importType_meaningAtLocation.ts @@ -9,5 +9,5 @@ ////const x: typeof import("./a").[|T|] = 0; const [r0, r1, r2, r3] = test.ranges(); -verify.rangesReferenceEachOther([r0, r2]); -verify.rangesReferenceEachOther([r1, r3]); +verify.singleReferenceGroup("type T = 0\nconst T: 0", [r0, r2]); +verify.singleReferenceGroup("type T = 0\nconst T: 0", [r1, r3]);