From 1d71736ca7412c2ceefc3d6114bc3460418aa644 Mon Sep 17 00:00:00 2001 From: Ika Date: Sat, 20 Oct 2018 00:49:51 +0800 Subject: [PATCH] fix(peerDeps): allow @angular/compiler@^7.0.0 (#5) --- package.json | 2 +- .../__snapshots__/transform-microsyntax.test.ts.snap | 12 ++++++------ tests/transform-microsyntax.test.ts | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index d3a52020..84ed2107 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "typescript": "3.1.3" }, "peerDependencies": { - "@angular/compiler": "^6.0.0" + "@angular/compiler": "^6.0.0 || ^7.0.0" }, "engines": { "node": ">= 6" diff --git a/tests/__snapshots__/transform-microsyntax.test.ts.snap b/tests/__snapshots__/transform-microsyntax.test.ts.snap index bbfe7a5b..491492d0 100644 --- a/tests/__snapshots__/transform-microsyntax.test.ts.snap +++ b/tests/__snapshots__/transform-microsyntax.test.ts.snap @@ -1,11 +1,5 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`" " 1`] = ` -NGMicrosyntax { body: [] } -> 1 | - | ^ -`; - exports[`" a " 1`] = ` NGMicrosyntax { body: ["NGMicrosyntaxExpression"] } > 1 | a @@ -329,3 +323,9 @@ Identifier { name: "heroes" } > 1 | let hero of heroes | ^^^^^^ `; + +exports[`"" 1`] = ` +NGMicrosyntax { body: [] } +> 1 | + | ^ +`; diff --git a/tests/transform-microsyntax.test.ts b/tests/transform-microsyntax.test.ts index 61dc9fde..d344ae0e 100644 --- a/tests/transform-microsyntax.test.ts +++ b/tests/transform-microsyntax.test.ts @@ -3,7 +3,7 @@ import { snapshotAst } from './helpers'; test.each` input | types - ${' '} | ${[]} + ${''} | ${[]} ${' let hero '} | ${['NGMicrosyntaxLet']} ${' let hero = hello '} | ${['NGMicrosyntaxLet']} ${' let hero of heroes '} | ${['NGMicrosyntaxLet', 'NGMicrosyntaxKeyedExpression']}