Skip to content

Commit 86295fb

Browse files
author
Maria Solano
committed
Include test for non empty literal
1 parent 424bda8 commit 86295fb

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

tests/cases/fourslash/completionsUnionProperty.ts

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/// <reference path="fourslash.ts" />
2+
3+
//// type Foo = { a: 0, b: 'x' } | { a: 0, b: 'y' } | { a: 1, b: 'z' };
4+
//// const foo: Foo = { a: 0, b: '/*1*/' }
5+
////
6+
//// type Bar = { a: 0, b: 'fx' } | { a: 0, b: 'fy' } | { a: 1, b: 'fz' };
7+
//// const bar: Bar = { a: 0, b: 'f/*2*/' }
8+
verify.completions({ marker: "1", triggerCharacter: "'", includes: [ "x", "y" ], excludes: [ "z" ] });
9+
verify.completions({ marker: "2", triggerCharacter: "'", includes: [ "fx", "fy" ], excludes: [ "fz" ] });

0 commit comments

Comments
 (0)