From e61679ce6e034aaef3971e7de66404c8e27c7b81 Mon Sep 17 00:00:00 2001 From: "William C. Johnson" Date: Tue, 5 Sep 2017 15:24:20 -0400 Subject: [PATCH] Unit test for unfortunate flow typecast in if test clause --- .../punctuation/paren-free-flow-typecast-unfortunate/actual.js | 1 + .../paren-free-flow-typecast-unfortunate/options.json | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 test/fixtures/bang-call/punctuation/paren-free-flow-typecast-unfortunate/actual.js create mode 100644 test/fixtures/bang-call/punctuation/paren-free-flow-typecast-unfortunate/options.json diff --git a/test/fixtures/bang-call/punctuation/paren-free-flow-typecast-unfortunate/actual.js b/test/fixtures/bang-call/punctuation/paren-free-flow-typecast-unfortunate/actual.js new file mode 100644 index 0000000000..c740c2f24d --- /dev/null +++ b/test/fixtures/bang-call/punctuation/paren-free-flow-typecast-unfortunate/actual.js @@ -0,0 +1 @@ +if a~b! c: d diff --git a/test/fixtures/bang-call/punctuation/paren-free-flow-typecast-unfortunate/options.json b/test/fixtures/bang-call/punctuation/paren-free-flow-typecast-unfortunate/options.json new file mode 100644 index 0000000000..6b5243adc0 --- /dev/null +++ b/test/fixtures/bang-call/punctuation/paren-free-flow-typecast-unfortunate/options.json @@ -0,0 +1,3 @@ +{ + "throws": "Paren-free test expressions must be followed by braces or a colon. (1:12)" +}