diff --git a/tests/typescript_as/__snapshots__/jsfmt.spec.js.snap b/tests/typescript_as/__snapshots__/jsfmt.spec.js.snap index 073735fef7bc..d4e6d0057e14 100644 --- a/tests/typescript_as/__snapshots__/jsfmt.spec.js.snap +++ b/tests/typescript_as/__snapshots__/jsfmt.spec.js.snap @@ -202,6 +202,44 @@ export default (function log() {} as typeof console.log); ================================================================================ `; +exports[`long-identifiers.ts 1`] = ` +====================================options===================================== +parsers: ["typescript"] +printWidth: 80 + | printWidth +=====================================input====================================== +const bifornCringerMoshedPerplexSawder = + askTrovenaBeenaDependsRowans as glimseGlyphsHazardNoopsTieTie; + +averredBathersBoxroomBuggyNurl.anodyneCondosMalateOverateRetinol = + annularCooeedSplicesWalksWayWay as kochabCooieGameOnOboleUnweave; + +averredBathersBoxroomBuggyNurl = { + anodyneCondosMalateOverateRetinol: + annularCooeedSplicesWalksWayWay as kochabCooieGameOnOboleUnweave +}; + +averredBathersBoxroomBuggyNurl( + anodyneCondosMalateOverateRetinol.annularCooeedSplicesWalksWayWay as + kochabCooieGameOnOboleUnweave +); + +=====================================output===================================== +const bifornCringerMoshedPerplexSawder = askTrovenaBeenaDependsRowans as glimseGlyphsHazardNoopsTieTie; + +averredBathersBoxroomBuggyNurl.anodyneCondosMalateOverateRetinol = annularCooeedSplicesWalksWayWay as kochabCooieGameOnOboleUnweave; + +averredBathersBoxroomBuggyNurl = { + anodyneCondosMalateOverateRetinol: annularCooeedSplicesWalksWayWay as kochabCooieGameOnOboleUnweave, +}; + +averredBathersBoxroomBuggyNurl( + anodyneCondosMalateOverateRetinol.annularCooeedSplicesWalksWayWay as kochabCooieGameOnOboleUnweave +); + +================================================================================ +`; + exports[`return.ts 1`] = ` ====================================options===================================== parsers: ["typescript"] diff --git a/tests/typescript_as/long-identifiers.ts b/tests/typescript_as/long-identifiers.ts new file mode 100644 index 000000000000..6fb9bca9398b --- /dev/null +++ b/tests/typescript_as/long-identifiers.ts @@ -0,0 +1,15 @@ +const bifornCringerMoshedPerplexSawder = + askTrovenaBeenaDependsRowans as glimseGlyphsHazardNoopsTieTie; + +averredBathersBoxroomBuggyNurl.anodyneCondosMalateOverateRetinol = + annularCooeedSplicesWalksWayWay as kochabCooieGameOnOboleUnweave; + +averredBathersBoxroomBuggyNurl = { + anodyneCondosMalateOverateRetinol: + annularCooeedSplicesWalksWayWay as kochabCooieGameOnOboleUnweave +}; + +averredBathersBoxroomBuggyNurl( + anodyneCondosMalateOverateRetinol.annularCooeedSplicesWalksWayWay as + kochabCooieGameOnOboleUnweave +);