Add tests

This commit is contained in:
Yui T 2017-06-14 21:41:19 -07:00
parent 1636fbc966
commit f66ad03459
2 changed files with 27 additions and 0 deletions

View file

@ -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);

View file

@ -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);