Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
gjtorikian committed Dec 24, 2023
1 parent 694a5c7 commit b2624b4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions test/html_pipeline/node_filter/syntax_highlight_filter_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class HTMLPipeline
class SyntaxHighlightFilterTest < Minitest::Test
def test_highlight_default
result = SyntaxHighlightFilter.call(\
result = SyntaxHighlightFilter.call(
"<pre>hello</pre>", context: { highlight: "coffeescript" }
)

Expand All @@ -19,7 +19,7 @@ def test_highlight_default
end

def test_highlight_default_will_not_override
result = SyntaxHighlightFilter.call(\
result = SyntaxHighlightFilter.call(
"<pre lang='c'>hello</pre>", context: { highlight: "coffeescript" }
)

Expand All @@ -30,7 +30,7 @@ def test_highlight_default_will_not_override
end

def test_highlight_does_not_remove_pre_tag
result = SyntaxHighlightFilter.call(\
result = SyntaxHighlightFilter.call(
"<pre lang='c'>hello</pre>", context: { highlight: "coffeescript" }
)

Expand All @@ -40,7 +40,7 @@ def test_highlight_does_not_remove_pre_tag
end

def test_highlight_allows_optional_scope
result = SyntaxHighlightFilter.call(\
result = SyntaxHighlightFilter.call(
"<pre lang='c'>hello</pre>", context: { highlight: "coffeescript", scope: "test-scope" }
)

Expand All @@ -50,7 +50,7 @@ def test_highlight_allows_optional_scope
end

def test_highlight_keeps_the_pre_tags_lang
result = SyntaxHighlightFilter.call(\
result = SyntaxHighlightFilter.call(
"<pre lang='c'>hello</pre>", context: { highlight: "coffeescript" }
)

Expand Down
4 changes: 2 additions & 2 deletions test/sanitization_filter_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def test_sanitization_pipeline_can_be_configured
elements: ["p", "pre", "code"],
}

pipeline = HTMLPipeline.new(\
pipeline = HTMLPipeline.new(
convert_filter:
HTMLPipeline::ConvertFilter::MarkdownFilter.new,
sanitization_config: config,
Expand All @@ -241,7 +241,7 @@ def test_sanitization_pipeline_can_be_configured
end

def test_sanitization_pipeline_can_be_removed
pipeline = HTMLPipeline.new(\
pipeline = HTMLPipeline.new(
convert_filter: HTMLPipeline::ConvertFilter::MarkdownFilter.new(context: { markdown: { plugins: { syntax_highlighter: nil } } }),
sanitization_config: nil,
node_filters: [
Expand Down

0 comments on commit b2624b4

Please sign in to comment.