From 6fafd0a48def40cd8a5dbf3e02f39c4281e984c5 Mon Sep 17 00:00:00 2001 From: Ika Date: Sat, 10 Nov 2018 01:01:18 +0800 Subject: [PATCH] fix(angular): correctly print unary expression with `+` (#5405) --- package.json | 2 +- tests/html_angular/__snapshots__/jsfmt.spec.js.snap | 8 ++++++++ tests/html_angular/attributes.component.html | 1 + yarn.lock | 6 +++--- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 034e08f8f..2fa025db8 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "@babel/parser": "7.1.5", "@glimmer/syntax": "0.30.3", "@iarna/toml": "2.0.0", - "angular-estree-parser": "1.1.4", + "angular-estree-parser": "1.1.5", "angular-html-parser": "1.0.0", "camelcase": "4.1.0", "chalk": "2.1.0", diff --git a/tests/html_angular/__snapshots__/jsfmt.spec.js.snap b/tests/html_angular/__snapshots__/jsfmt.spec.js.snap index 01880bc25..5761e6ece 100644 --- a/tests/html_angular/__snapshots__/jsfmt.spec.js.snap +++ b/tests/html_angular/__snapshots__/jsfmt.spec.js.snap @@ -85,6 +85,7 @@ exports[`attributes.component.html - angular-verify 1`] = ` {'btn-success': (dialog$ | async).level === dialogLevelEnum.SUCCESS, 'btn-warning': (dialog$ | async).level === dialogLevelEnum.WARNING, 'btn-svg': (dialog$ | async).level === dialogLevelEnum.DANGER}" + [stickout]="+toolAssembly.stickoutMm" > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
`; @@ -283,6 +285,7 @@ exports[`attributes.component.html - angular-verify 2`] = ` {'btn-success': (dialog$ | async).level === dialogLevelEnum.SUCCESS, 'btn-warning': (dialog$ | async).level === dialogLevelEnum.WARNING, 'btn-svg': (dialog$ | async).level === dialogLevelEnum.DANGER}" + [stickout]="+toolAssembly.stickoutMm" > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
`; @@ -481,6 +485,7 @@ exports[`attributes.component.html - angular-verify 3`] = ` {'btn-success': (dialog$ | async).level === dialogLevelEnum.SUCCESS, 'btn-warning': (dialog$ | async).level === dialogLevelEnum.WARNING, 'btn-svg': (dialog$ | async).level === dialogLevelEnum.DANGER}" + [stickout]="+toolAssembly.stickoutMm" > ~
`; diff --git a/tests/html_angular/attributes.component.html b/tests/html_angular/attributes.component.html index a33b7c300..71ec64da9 100644 --- a/tests/html_angular/attributes.component.html +++ b/tests/html_angular/attributes.component.html @@ -82,4 +82,5 @@ {'btn-success': (dialog$ | async).level === dialogLevelEnum.SUCCESS, 'btn-warning': (dialog$ | async).level === dialogLevelEnum.WARNING, 'btn-svg': (dialog$ | async).level === dialogLevelEnum.DANGER}" + [stickout]="+toolAssembly.stickoutMm" > diff --git a/yarn.lock b/yarn.lock index 5f5099aff..43af90ad8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -704,9 +704,9 @@ amdefine@>=0.0.4: version "1.0.1" resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5" -angular-estree-parser@1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/angular-estree-parser/-/angular-estree-parser-1.1.4.tgz#173fd2a9a30ccd38864e879e66b83cbbbdfd45db" +angular-estree-parser@1.1.5: + version "1.1.5" + resolved "https://registry.yarnpkg.com/angular-estree-parser/-/angular-estree-parser-1.1.5.tgz#f278e03e648a2bfb6c5dcdf17ba3273f3251b74a" dependencies: lines-and-columns "^1.1.6" tslib "^1.9.3"