Add test for semicolon detection in auto-import

This commit is contained in:
Andrew Branch 2019-06-06 10:55:56 -07:00
parent b37875ff7a
commit 6282c9fb5e
No known key found for this signature in database
GPG key ID: 22CCA4B120C427D2

View file

@ -0,0 +1,20 @@
/// <reference path="fourslash.ts" />
// @Filename: /a.ts
////export function foo() {}
// @Filename: /b.ts
////const x = 0
////const y = 1
////const z = fo/**/
verify.applyCodeActionFromCompletion("", {
name: "foo",
source: "/a",
description: `Import 'foo' from module "./a"`,
newFileContent: `import { foo } from "./a"
const x = 0
const y = 1
const z = fo`,
});