From f20a3306777e83ff2ca6ef3baecb4cbed05b0456 Mon Sep 17 00:00:00 2001 From: Arthur Ozga Date: Tue, 2 May 2017 16:19:26 -0700 Subject: [PATCH] add tests --- .../importNameCodeFixNewImportFromAtTypes.ts | 13 +++++++++++++ ...tNameCodeFixNewImportFromAtTypesScopedPackage.ts | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 tests/cases/fourslash/importNameCodeFixNewImportFromAtTypes.ts create mode 100644 tests/cases/fourslash/importNameCodeFixNewImportFromAtTypesScopedPackage.ts diff --git a/tests/cases/fourslash/importNameCodeFixNewImportFromAtTypes.ts b/tests/cases/fourslash/importNameCodeFixNewImportFromAtTypes.ts new file mode 100644 index 00000000000..bca8f716200 --- /dev/null +++ b/tests/cases/fourslash/importNameCodeFixNewImportFromAtTypes.ts @@ -0,0 +1,13 @@ +/// + +//// [|f1/*0*/();|] + +// @Filename: node_modules/@types/myLib/index.d.ts +//// export function f1() {} +//// export var v1 = 5; + +verify.importFixAtPosition([ +`import { f1 } from "myLib"; + +f1();` +]); \ No newline at end of file diff --git a/tests/cases/fourslash/importNameCodeFixNewImportFromAtTypesScopedPackage.ts b/tests/cases/fourslash/importNameCodeFixNewImportFromAtTypesScopedPackage.ts new file mode 100644 index 00000000000..3cf6cf8a32e --- /dev/null +++ b/tests/cases/fourslash/importNameCodeFixNewImportFromAtTypesScopedPackage.ts @@ -0,0 +1,13 @@ +/// + +//// [|f1/*0*/();|] + +// @Filename: node_modules/@types/myLib__scoped/index.d.ts +//// export function f1() {} +//// export var v1 = 5; + +verify.importFixAtPosition([ +`import { f1 } from "@myLib/scoped"; + +f1();` +]); \ No newline at end of file