Fix path in importDeclTypes.ts test (#15992)

This commit is contained in:
Andy 2017-05-22 10:25:40 -07:00 committed by Mohamed Hegazy
parent aaeb565e91
commit bba8e74496
2 changed files with 3 additions and 3 deletions

View File

@ -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'.

View File

@ -5,5 +5,5 @@ export interface Foo {
}
// This should error
// @filename: a.ts
// @filename: /a.ts
import { Foo } from "@types/foo-bar";