Fix path in importDeclTypes.ts test (#15992)

This commit is contained in:
Andy authored and Mohamed Hegazy committed 2017-05-22 10:25:40 -07:00
1 parent aaeb565e91
commit bba8e74496
2 files changed
+3 -3

No files matched your search

@@ -1,4 +1,4 @@
tests/cases/compiler/a.ts(1,21): error TS6137: Cannot import type declaration files. Consider importing 'foo-bar' instead of '@types/foo-bar'.
/a.ts(1,21): error TS6137: Cannot import type declaration files. Consider importing 'foo-bar' instead of '@types/foo-bar'.
==== /node_modules/@types/foo-bar/index.d.ts (0 errors) ====
@@ -7,7 +7,7 @@ tests/cases/compiler/a.ts(1,21): error TS6137: Cannot import type declaration fi
}
// This should error
==== tests/cases/compiler/a.ts (1 errors) ====
==== /a.ts (1 errors) ====
import { Foo } from "@types/foo-bar";
~~~~~~~~~~~~~~~~
!!! error TS6137: Cannot import type declaration files. Consider importing 'foo-bar' instead of '@types/foo-bar'.
+1 -1
View File
@@ -5,5 +5,5 @@ export interface Foo {
}
// This should error
// @filename: a.ts
// @filename: /a.ts
import { Foo } from "@types/foo-bar";