From 94e3ee94835a20ff4f0efc1954c5e1f035ea0810 Mon Sep 17 00:00:00 2001 From: Gcaufy Date: Sat, 4 Jul 2020 00:20:46 +0800 Subject: [PATCH] test(compiler-sass): fixed fixtures test cases --- .../compiler-sass/test/fixtures/css/alias.scss.css | 3 ++- .../compiler-sass/test/fixtures/css/basic.sass.css | 14 ++++++++------ .../compiler-sass/test/fixtures/css/basic.scss.css | 14 ++++++++------ .../test/fixtures/css/import.scss.css | 3 ++- .../test/fixtures/sass/import.tmp.sass | 4 ++++ 5 files changed, 24 insertions(+), 14 deletions(-) create mode 100644 packages/compiler-sass/test/fixtures/sass/import.tmp.sass diff --git a/packages/compiler-sass/test/fixtures/css/alias.scss.css b/packages/compiler-sass/test/fixtures/css/alias.scss.css index dc7ef0ca5..e9a1efc74 100644 --- a/packages/compiler-sass/test/fixtures/css/alias.scss.css +++ b/packages/compiler-sass/test/fixtures/css/alias.scss.css @@ -1,2 +1,3 @@ body { - color: #ff0101; } + color: #ff0101; +} \ No newline at end of file diff --git a/packages/compiler-sass/test/fixtures/css/basic.sass.css b/packages/compiler-sass/test/fixtures/css/basic.sass.css index 34d2cdd34..03066615a 100644 --- a/packages/compiler-sass/test/fixtures/css/basic.sass.css +++ b/packages/compiler-sass/test/fixtures/css/basic.sass.css @@ -1,16 +1,18 @@ body { font: 100% Helvetica, sans-serif; - color: #333; } + color: #333; +} nav ul { margin: 0; padding: 0; - list-style: none; } - + list-style: none; +} nav li { - display: inline-block; } - + display: inline-block; +} nav a { display: block; padding: 6px 12px; - text-decoration: none; } + text-decoration: none; +} \ No newline at end of file diff --git a/packages/compiler-sass/test/fixtures/css/basic.scss.css b/packages/compiler-sass/test/fixtures/css/basic.scss.css index 34d2cdd34..03066615a 100644 --- a/packages/compiler-sass/test/fixtures/css/basic.scss.css +++ b/packages/compiler-sass/test/fixtures/css/basic.scss.css @@ -1,16 +1,18 @@ body { font: 100% Helvetica, sans-serif; - color: #333; } + color: #333; +} nav ul { margin: 0; padding: 0; - list-style: none; } - + list-style: none; +} nav li { - display: inline-block; } - + display: inline-block; +} nav a { display: block; padding: 6px 12px; - text-decoration: none; } + text-decoration: none; +} \ No newline at end of file diff --git a/packages/compiler-sass/test/fixtures/css/import.scss.css b/packages/compiler-sass/test/fixtures/css/import.scss.css index dc7ef0ca5..e9a1efc74 100644 --- a/packages/compiler-sass/test/fixtures/css/import.scss.css +++ b/packages/compiler-sass/test/fixtures/css/import.scss.css @@ -1,2 +1,3 @@ body { - color: #ff0101; } + color: #ff0101; +} \ No newline at end of file diff --git a/packages/compiler-sass/test/fixtures/sass/import.tmp.sass b/packages/compiler-sass/test/fixtures/sass/import.tmp.sass new file mode 100644 index 000000000..aae14bc8c --- /dev/null +++ b/packages/compiler-sass/test/fixtures/sass/import.tmp.sass @@ -0,0 +1,4 @@ +@import './vars/colors.scss'; + +body + color: $red;