mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-11 06:02:53 -05:00
add single-line object destructuring test case
This commit is contained in:
@@ -3,7 +3,8 @@
|
||||
/////*1*/const {
|
||||
/////*2*/ a,
|
||||
/////*3*/ b,
|
||||
/////*4*/} = { a: 1, b: 2 };
|
||||
/////*4*/} = {a: 1, b: 2};
|
||||
/////*5*/const {a: c} = {a: 1, b: 2};
|
||||
|
||||
format.document();
|
||||
|
||||
@@ -14,4 +15,6 @@ verify.currentLineContentIs(" a,");
|
||||
goTo.marker("3");
|
||||
verify.currentLineContentIs(" b,");
|
||||
goTo.marker("4");
|
||||
verify.currentLineContentIs("} = { a: 1, b: 2 };");
|
||||
verify.currentLineContentIs("} = { a: 1, b: 2 };");
|
||||
goTo.marker("5");
|
||||
verify.currentLineContentIs("const { a: c } = { a: 1, b: 2 };");
|
||||
Reference in New Issue
Block a user