From 0bfd1ca4e18601e2b67643460627bf4e92fe6ef3 Mon Sep 17 00:00:00 2001 From: Andy Hanson Date: Mon, 7 May 2018 10:51:24 -0700 Subject: [PATCH] Replace `verify.rangesReferenceEachOther` with `verify.singleReferenceGroup` --- 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 dda48580b665a..9f1fa09436e4e 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 a9104fb398eae..ddd0cb7c966d4 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 21cc1afebb0bd..4bb5cb27a17cb 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]);