TypeScript/tests/cases/fourslash/uncommentSelection2.ts
2020-05-26 19:26:28 -07:00

34 lines
674 B
TypeScript

// Common uncomment jsx cases
//@Filename: file.tsx
//// const a = <MyContainer>
//// {/*<MyF[|irstComponent />*/}
//// {/*<MySec|]ondComponent />*/}
//// </MyContainer>;
////
//// const b = <div>
//// {/*[|<div>*/}
//// SomeText
//// {/*</div>|]*/}
//// </div>;
////
//// const c = <MyContainer>
//// [||]{/*<MyFirstComponent />*/}
//// </MyContainer>;
verify.uncommentSelection(
`const a = <MyContainer>
<MyFirstComponent />
<MySecondComponent />
</MyContainer>;
const b = <div>
<div>
SomeText
</div>
</div>;
const c = <MyContainer>
<MyFirstComponent />
</MyContainer>;`);