mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Add tests
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
/// <reference path="fourslash.ts"/>
|
||||
|
||||
// @lib: es2015
|
||||
|
||||
// @Filename: ./foo.ts
|
||||
//// export function bar() { return 1; }
|
||||
|
||||
// @Filename: ./0.ts
|
||||
//// /*1*/ import { bar } from "./foo"
|
||||
verify.numberOfErrorsInCurrentFile(0);
|
||||
goTo.marker("1");
|
||||
edit.insert("var x = ");
|
||||
verify.numberOfErrorsInCurrentFile(1);
|
||||
@@ -0,0 +1,14 @@
|
||||
/// <reference path="fourslash.ts"/>
|
||||
|
||||
// @lib: es2015
|
||||
|
||||
// @Filename: ./foo.ts
|
||||
//// export function bar() { return 1; }
|
||||
|
||||
// @Filename: ./0.ts
|
||||
//// var x = import/*1*/
|
||||
|
||||
verify.numberOfErrorsInCurrentFile(0);
|
||||
goTo.marker("1");
|
||||
edit.insert("(");
|
||||
verify.numberOfErrorsInCurrentFile(2);
|
||||
Reference in New Issue
Block a user