Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Yui T committed Jun 19, 2017
1 parent 11b9f6e commit 6d33083
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/cases/fourslash/incrementalParsingDynamicImport2.ts
@@ -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);
14 changes: 14 additions & 0 deletions tests/cases/fourslash/incrementalParsingDynamicImport3.ts
@@ -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);

0 comments on commit 6d33083

Please sign in to comment.