Skip to content
This repository has been archived by the owner on Apr 4, 2019. It is now read-only.

Commit

Permalink
Remove tests that assumed four-digit hex colors were invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Jun 21, 2018
1 parent 4e2e1cd commit 987aa68
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions test/sass/script_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -608,8 +608,6 @@ def test_non_ident_colors_with_wrong_number_of_digits
'Invalid CSS after "": expected expression (e.g. 1px, bold), was "#1"') {eval("#1")}
assert_raise_message(Sass::SyntaxError,
'Invalid CSS after "": expected expression (e.g. 1px, bold), was "#12"') {eval("#12")}
assert_raise_message(Sass::SyntaxError,
'Invalid CSS after "": expected expression (e.g. 1px, bold), was "#1234"') {eval("#1234")}
assert_raise_message(Sass::SyntaxError,
'Invalid CSS after "": expected expression (e.g. 1px, bold), was "#12345"') {eval("#12345")}
assert_raise_message(Sass::SyntaxError, 'Invalid CSS after "": expected expression (e.g. ' \
Expand Down
2 changes: 1 addition & 1 deletion test/sass/value_helpers_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def test_malformed_hex_color
hex_color("green")
end
assert_raises ArgumentError do
hex_color("#abcd")
hex_color("#abcde")
end
end

Expand Down

0 comments on commit 987aa68

Please sign in to comment.