chore: apply mix format to codebase
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -70,6 +70,7 @@ defmodule SimpleshopTheme.Media.SVGRecolorerTest do
|
||||
svg = """
|
||||
<svg><style>.st0{fill:#FFFFFF;}.st1{fill:#EF1D1D;stroke:#000000;}</style><path class="st0"/></svg>
|
||||
"""
|
||||
|
||||
result = SVGRecolorer.recolor(svg, "#ff6600")
|
||||
assert result =~ "fill:#ff6600"
|
||||
refute result =~ "#FFFFFF"
|
||||
@@ -80,6 +81,7 @@ defmodule SimpleshopTheme.Media.SVGRecolorerTest do
|
||||
svg = """
|
||||
<svg><style>.st1{stroke:#000000;stroke-miterlimit:10;}</style><path class="st1"/></svg>
|
||||
"""
|
||||
|
||||
result = SVGRecolorer.recolor(svg, "#ff6600")
|
||||
assert result =~ "stroke:#ff6600"
|
||||
refute result =~ "#000000"
|
||||
@@ -89,6 +91,7 @@ defmodule SimpleshopTheme.Media.SVGRecolorerTest do
|
||||
svg = """
|
||||
<svg><style>.st0{fill:none;stroke:#000;}</style><path class="st0"/></svg>
|
||||
"""
|
||||
|
||||
result = SVGRecolorer.recolor(svg, "#ff6600")
|
||||
assert result =~ "fill:none"
|
||||
assert result =~ "stroke:#ff6600"
|
||||
@@ -98,6 +101,7 @@ defmodule SimpleshopTheme.Media.SVGRecolorerTest do
|
||||
svg = """
|
||||
<svg><style>.icon{fill:black;stroke:white;}</style><path class="icon"/></svg>
|
||||
"""
|
||||
|
||||
result = SVGRecolorer.recolor(svg, "#ff6600")
|
||||
assert result =~ "fill:#ff6600"
|
||||
assert result =~ "stroke:#ff6600"
|
||||
|
||||
Reference in New Issue
Block a user