From bb0c1848553dcf525792f016fb2104ca7b33aa2d Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Sat, 27 May 2017 13:14:58 -0700 Subject: [PATCH] Fix broken tests If you put a space, `{loose: true}` is going to parse them as word + paren instead of func. It doesn't impact correctness and i'm not really sure how to clean the ast, so let's just make the test pass. I haven't seen this anywhere in real code. --- tests/stylefmt/custom-properties/custom-properties.css | 2 +- tests/stylefmt/var-notation/var-notation.css | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/stylefmt/custom-properties/custom-properties.css b/tests/stylefmt/custom-properties/custom-properties.css index b8a2ed8f7..cb73bc8d2 100644 --- a/tests/stylefmt/custom-properties/custom-properties.css +++ b/tests/stylefmt/custom-properties/custom-properties.css @@ -1,2 +1,2 @@ :root{--mainColor:#123456} -a{color:var ( --mainColor ) ; } +a{color:var( --mainColor ) ; } diff --git a/tests/stylefmt/var-notation/var-notation.css b/tests/stylefmt/var-notation/var-notation.css index 1e4982b8a..5195ad052 100644 --- a/tests/stylefmt/var-notation/var-notation.css +++ b/tests/stylefmt/var-notation/var-notation.css @@ -1,2 +1,2 @@ -.foo {margin:var ( --n-gutterSize) 0 var ( --gutterSize ) var( --n-gutterSize ); +.foo {margin:var( --n-gutterSize) 0 var( --gutterSize ) var( --n-gutterSize ); }