Skip to content

Commit

Permalink
Use alias in test
Browse files Browse the repository at this point in the history
  • Loading branch information
camelpunch committed Nov 10, 2024
1 parent 88d391f commit 91013e6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/mudbrick/text_block_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -365,30 +365,30 @@ defmodule Mudbrick.TextBlockTest do
"ET"
] =
output(fn %{fonts: fonts} ->
Mudbrick.TextBlock.new(
TextBlock.new(
font: fonts.regular,
font_size: 10,
position: {400, 500},
align: :right
)
|> Mudbrick.TextBlock.write("a")
|> Mudbrick.TextBlock.write(
|> TextBlock.write("a")
|> TextBlock.write(
"""
aa
""",
colour: {1, 0, 0}
)
|> Mudbrick.TextBlock.write("""
|> TextBlock.write("""
www
WOW\
""")
|> Mudbrick.TextBlock.write(
|> TextBlock.write(
"""
WOWOWOW
""",
colour: {0, 1, 0}
)
|> Mudbrick.TextBlock.write("""
|> TextBlock.write("""
hi\
""")
Expand Down

0 comments on commit 91013e6

Please sign in to comment.