Skip to content

Commit f66ad03

Browse files
author
Yui T
committed
Add tests
1 parent 1636fbc commit f66ad03

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/// <reference path="fourslash.ts"/>
2+
3+
// @lib: es2015
4+
5+
// @Filename: ./foo.ts
6+
//// export function bar() { return 1; }
7+
8+
// @Filename: ./0.ts
9+
//// /*1*/ import { bar } from "./foo"
10+
verify.numberOfErrorsInCurrentFile(0);
11+
goTo.marker("1");
12+
edit.insert("var x = ");
13+
verify.numberOfErrorsInCurrentFile(1);
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/// <reference path="fourslash.ts"/>
2+
3+
// @lib: es2015
4+
5+
// @Filename: ./foo.ts
6+
//// export function bar() { return 1; }
7+
8+
// @Filename: ./0.ts
9+
//// var x = import/*1*/
10+
11+
verify.numberOfErrorsInCurrentFile(0);
12+
goTo.marker("1");
13+
edit.insert("(");
14+
verify.numberOfErrorsInCurrentFile(2);

0 commit comments

Comments
 (0)