From 2ff388f19ad238dfeea09effb6761e7e4f8ac9d0 Mon Sep 17 00:00:00 2001 From: Cyrille Date: Mon, 13 Jul 2020 17:25:52 +0200 Subject: [PATCH] Add a test (#8721) --- .../__snapshots__/jsfmt.spec.js.snap | 24 +++++++++++++++++++ tests/handlebars/block-statement/if-else.hbs | 6 +++++ 2 files changed, 30 insertions(+) diff --git a/tests/handlebars/block-statement/__snapshots__/jsfmt.spec.js.snap b/tests/handlebars/block-statement/__snapshots__/jsfmt.spec.js.snap index 687cd576e..1f547ce27 100644 --- a/tests/handlebars/block-statement/__snapshots__/jsfmt.spec.js.snap +++ b/tests/handlebars/block-statement/__snapshots__/jsfmt.spec.js.snap @@ -484,6 +484,12 @@ singleQuote: true c {{/if}} +{{~#if someCondition~}} + One thing +{{~else if anotherCondition~}} + Another thing +{{~/if~}} + =====================================output=====================================

{{#if isAtWork}} @@ -593,6 +599,12 @@ singleQuote: true b c {{/if}} + +{{~#if someCondition~}} + One thing +{{~else if anotherCondition~}} + Another thing +{{~/if~}} ================================================================================ `; @@ -705,6 +717,12 @@ printWidth: 80 c {{/if}} +{{~#if someCondition~}} + One thing +{{~else if anotherCondition~}} + Another thing +{{~/if~}} + =====================================output=====================================

{{#if isAtWork}} @@ -814,6 +832,12 @@ printWidth: 80 b c {{/if}} + +{{~#if someCondition~}} + One thing +{{~else if anotherCondition~}} + Another thing +{{~/if~}} ================================================================================ `; diff --git a/tests/handlebars/block-statement/if-else.hbs b/tests/handlebars/block-statement/if-else.hbs index 350252fca..f8594ea34 100644 --- a/tests/handlebars/block-statement/if-else.hbs +++ b/tests/handlebars/block-statement/if-else.hbs @@ -100,3 +100,9 @@ b c {{/if}} + +{{~#if someCondition~}} + One thing +{{~else if anotherCondition~}} + Another thing +{{~/if~}}