diff options
| author | mat <github@matdoes.dev> | 2021-12-10 21:56:57 +0000 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2021-12-10 21:56:57 +0000 |
| commit | 2ceaea5148d7005457de54fdcd2eff0308be2aca (patch) | |
| tree | 27f5e62a725866640f97c5480b606124090de2b8 /minecraft-chat/tests/integration_test.rs | |
| parent | e4460661c672c5716d7145949054cf56b0f91c64 (diff) | |
| download | azalea-drasl-2ceaea5148d7005457de54fdcd2eff0308be2aca.tar.xz | |
remove useless function argument in to_ansi
Diffstat (limited to 'minecraft-chat/tests/integration_test.rs')
| -rw-r--r-- | minecraft-chat/tests/integration_test.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/minecraft-chat/tests/integration_test.rs b/minecraft-chat/tests/integration_test.rs index a454ad3b..0423a9d7 100644 --- a/minecraft-chat/tests/integration_test.rs +++ b/minecraft-chat/tests/integration_test.rs @@ -16,7 +16,7 @@ fn basic_ansi_test() { .unwrap(); let component = Component::new(&j).unwrap(); assert_eq!( - component.to_ansi(None), + component.to_ansi(), "\x1b[1m\x1b[38;2;255;85;85mhello\x1b[m" ); } @@ -52,7 +52,7 @@ fn complex_ansi_test() { .unwrap(); let component = Component::new(&j).unwrap(); assert_eq!( - component.to_ansi(None), + component.to_ansi(), format!( "{bold}{italic}{underlined}{red}hello{reset}{bold}{italic}{red} {reset}{italic}{strikethrough}{abcdef}world{reset}{abcdef} asdf{bold}!{reset}", bold = Ansi::BOLD, @@ -70,5 +70,5 @@ fn complex_ansi_test() { fn component_from_string() { let j: Value = serde_json::from_str("\"foo\"").unwrap(); let component = Component::new(&j).unwrap(); - assert_eq!(component.to_ansi(None), "foo"); + assert_eq!(component.to_ansi(), "foo"); } |
