Skip to content

Commit 65de9c2

Browse files
committed
Add more tests
1 parent 5c2b555 commit 65de9c2

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

tests/cases/fourslash/completionsUnionStringLiteralProperty.ts

+11-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,15 @@
55
////
66
//// type Bar = { a: 0, b: 'fx' } | { a: 0, b: 'fy' } | { a: 1, b: 'fz' };
77
//// const bar: Bar = { a: 0, b: 'f/*2*/' }
8+
////
9+
//// type Baz = { x: 0, y: 0, z: 'a' } | { x: 0, y: 1, z: 'b' } | { x: 1, y: 0, z: 'c' } | { x: 1, y: 1, z: 'd' };
10+
//// const baz1: Baz = { z: '/*3*/' };
11+
//// const baz2: Baz = { x: 0, z: '/*4*/' };
12+
//// const baz3: Baz = { x: 0, y: 1, z: '/*5*/' };
13+
//// const baz4: Baz = { x: 2, y: 1, z: '/*6*/' };
814
verify.completions({ marker: "1", triggerCharacter: "'", includes: [ "x", "y" ], excludes: [ "z" ] });
9-
verify.completions({ marker: "2", triggerCharacter: "'", includes: [ "fx", "fy" ], excludes: [ "fz" ] });
15+
verify.completions({ marker: "2", triggerCharacter: "'", includes: [ "fx", "fy" ], excludes: [ "fz" ] });
16+
verify.completions({ marker: "3", triggerCharacter: "'", includes: [ "a", "b", "c", "d" ] });
17+
verify.completions({ marker: "4", triggerCharacter: "'", includes: [ "a", "b" ], excludes: [ "c", "d" ] });
18+
verify.completions({ marker: "5", triggerCharacter: "'", includes: [ "b" ], excludes: [ "a", "c", "d" ] });
19+
verify.completions({ marker: "6", triggerCharacter: "'", includes: [ "b", "d" ], excludes: [ "a", "c" ] });

0 commit comments

Comments
 (0)