TypeScript/tests/cases/fourslash/completionForQuotedPropertyInPropertyAssignment3.ts
Wenlu Wang 5596ed80d7
Add replacement span for string literal (#37490)
* Add replacement span for string literal

* fix change requests

* fix lint

* Avoid flag

* Fix baseline

* ADd misising baseline
2020-04-01 17:58:16 -07:00

26 lines
599 B
TypeScript

/// <reference path='fourslash.ts'/>
//// let configFiles1: {
//// jspm: string;
//// 'jspm:browser': string;
//// } = {
//// /*0*/: "",
//// }
//// let configFiles2: {
//// jspm: string;
//// 'jspm:browser': string;
//// } = {
//// jspm: "",
//// '[|/*1*/|]': ""
//// }
const replacementSpan = test.ranges()[0]
verify.completions(
{ marker: "0", exact: ["jspm", '"jspm:browser"'] },
{ marker: "1", exact: [
{ name: "jspm", replacementSpan },
{ name: "jspm:browser", replacementSpan }
] }
);