Skip to content

Commit

Permalink
Fix test by setting max_width
Browse files Browse the repository at this point in the history
Otherwise it is infinity on CI
  • Loading branch information
fuelen committed Jul 20, 2024
1 parent 93f9089 commit a8de665
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions test/owl/box_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -321,15 +321,17 @@ defmodule Owl.BoxTest do
# This test is present just to track this issue.
assert "A B C"
|> Owl.Data.tag([:red, :green_background])
|> Owl.Box.new(word_wrap: :normal, border_style: :none)
|> Owl.Box.new(word_wrap: :normal, border_style: :none, max_width: 80)
|> Owl.Data.to_ansidata()
|> Owl.Data.from_ansidata()
|> List.flatten()
<~> [
Owl.Data.tag("A", [:green_background, :red]),
" ",
Owl.Data.tag("B", [:green_background, :red]),
" ",
[
[
[Owl.Data.tag("A", [:green_background, :red]), " "],
Owl.Data.tag("B", [:green_background, :red])
],
" "
],
Owl.Data.tag("C", [:green_background, :red])
]
end
Expand Down

0 comments on commit a8de665

Please sign in to comment.