Update sass related tests for jekyll-sass-converter 3.x (#9223)
Merge pull request 9223
This commit is contained in:
parent
fc75f5360d
commit
572c86ec13
|
@ -168,7 +168,7 @@ Feature: Rendering
|
|||
When I run jekyll build
|
||||
Then I should get a zero exit status
|
||||
And the _site directory should exist
|
||||
And I should see ".foo-bar { color: red; }\n\n\/\*# sourceMappingURL=index.css.map \*\/" in "_site/index.css"
|
||||
And I should see ".foo-bar {\n color: red;\n}\n\n\/\*# sourceMappingURL=index.css.map \*\/" in "_site/index.css"
|
||||
|
||||
Scenario: Not render liquid in CoffeeScript without explicitly including jekyll-coffeescript
|
||||
Given I have an "index.coffee" page with animal "cicada" that contains "hey='for {{page.animal}}'"
|
||||
|
|
|
@ -19,7 +19,7 @@ Feature: Writing themes
|
|||
When I run jekyll build
|
||||
Then I should get a zero exit status
|
||||
And the _site directory should exist
|
||||
And I should see ".sample { color: red; }\n\n\/\*# sourceMappingURL=style.css.map \*\/" in "_site/assets/style.css"
|
||||
And I should see ".sample {\n color: red;\n}\n\n\/\*# sourceMappingURL=style.css.map \*\/" in "_site/assets/style.css"
|
||||
|
||||
Scenario: Overriding a theme with SCSS
|
||||
Given I have a configuration file with "theme" set to "test-theme"
|
||||
|
@ -28,7 +28,7 @@ Feature: Writing themes
|
|||
When I run jekyll build
|
||||
Then I should get a zero exit status
|
||||
And the _site directory should exist
|
||||
And I should see ".sample { color: black; }\n\n\/\*# sourceMappingURL=style.css.map \*\/" in "_site/assets/style.css"
|
||||
And I should see ".sample {\n color: black;\n}\n\n\/\*# sourceMappingURL=style.css.map \*\/" in "_site/assets/style.css"
|
||||
|
||||
Scenario: A theme with an include
|
||||
Given I have a configuration file with "theme" set to "test-theme"
|
||||
|
|
|
@ -143,7 +143,7 @@ class TestFilters < JekyllUnitTest
|
|||
|
||||
should "sassify with simple string" do
|
||||
assert_equal(
|
||||
"p { color: #123456; }\n",
|
||||
"p {\n color: #123456;\n}",
|
||||
@filter.sassify(<<~SASS)
|
||||
$blue: #123456
|
||||
p
|
||||
|
@ -154,7 +154,7 @@ class TestFilters < JekyllUnitTest
|
|||
|
||||
should "scssify with simple string" do
|
||||
assert_equal(
|
||||
"p { color: #123456; }\n",
|
||||
"p {\n color: #123456;\n}",
|
||||
@filter.scssify("$blue:#123456; p{color: $blue}")
|
||||
)
|
||||
end
|
||||
|
|
|
@ -15,7 +15,9 @@ class TestSass < JekyllUnitTest
|
|||
|
||||
should "import SCSS partial" do
|
||||
result = <<~CSS
|
||||
.half { width: 50%; }
|
||||
.half {
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
/*# sourceMappingURL=main.css.map */
|
||||
CSS
|
||||
|
|
|
@ -38,7 +38,7 @@ class TestThemeAssetsReader < JekyllUnitTest
|
|||
file = @site.pages.find { |f| f.relative_path == "assets/style.scss" }
|
||||
refute_nil file
|
||||
assert_equal @site.in_dest_dir("assets/style.css"), file.destination(@site.dest)
|
||||
assert_includes file.output, ".sample { color: black; }"
|
||||
assert_includes file.output, ".sample {\n color: black;\n}"
|
||||
end
|
||||
|
||||
should "not overwrite site content with the same relative path" do
|
||||
|
|
Loading…
Reference in New Issue