Skip to content

Commit

Permalink
I forgot version 3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
angelikatyborska committed Sep 19, 2024
1 parent 7a0fdc5 commit ecda2c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/bitstyles_phoenix/bitstyles.ex
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ defmodule BitstylesPhoenix.Bitstyles do

class = test_only_downgrade(class, "u-version-4", "u-version-2")

downgrade_classname(class, target_version, {3, 1, 0})
end

defp downgrade_classname(class, target_version, {3, 1, 0}) do
# no changes when downgrading from 3.1.0 -> 3.0.0
downgrade_classname(class, target_version, {3, 0, 0})
end

Expand Down
1 change: 1 addition & 0 deletions test/bitstyles_phoenix/bitstyles_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ defmodule BitstylesPhoenix.BitstylesTest do
assert classname("u-version-5-0-0", {4, 2, 0}) == "u-version-4"
assert classname("u-version-5-0-0", {4, 1, 0}) == "u-version-4"
assert classname("u-version-5-0-0", {4, 0, 0}) == "u-version-4"
assert classname("u-version-5-0-0", {3, 1, 0}) == "u-version-2"
assert classname("u-version-5-0-0", {3, 0, 0}) == "u-version-2"
assert classname("u-version-5-0-0", {2, 0, 0}) == "u-version-2"
assert classname("u-version-5-0-0", {1, 5, 0}) == "u-version-1-4"
Expand Down

0 comments on commit ecda2c8

Please sign in to comment.