From ffc60db5d32f936d2419952666897352c2aab5a5 Mon Sep 17 00:00:00 2001 From: ecogels Date: Tue, 5 May 2020 13:47:13 +0200 Subject: [PATCH] add test for missing clause for await block formatting (#76) --- .../samples/await-block-with-catch-without-pending.html | 5 +++++ .../samples/await-inline-with-catch-without-pending.html | 1 + 2 files changed, 6 insertions(+) create mode 100644 test/printer/samples/await-block-with-catch-without-pending.html create mode 100644 test/printer/samples/await-inline-with-catch-without-pending.html diff --git a/test/printer/samples/await-block-with-catch-without-pending.html b/test/printer/samples/await-block-with-catch-without-pending.html new file mode 100644 index 00000000..290f3e74 --- /dev/null +++ b/test/printer/samples/await-block-with-catch-without-pending.html @@ -0,0 +1,5 @@ +{#await thePromise then theValue} +

the value is {theValue}

+{:catch} +

oh no! {theError.message}

+{/await} diff --git a/test/printer/samples/await-inline-with-catch-without-pending.html b/test/printer/samples/await-inline-with-catch-without-pending.html new file mode 100644 index 00000000..9677eaee --- /dev/null +++ b/test/printer/samples/await-inline-with-catch-without-pending.html @@ -0,0 +1 @@ +{#await thePromise then theValue}{theValue}{:catch error}{error}{/await}