aboutsummaryrefslogtreecommitdiff
path: root/azalea-chat/tests
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-12-04 20:58:14 -0600
committermat <github@matdoes.dev>2022-12-04 20:58:14 -0600
commite99a822995c80e1f95c5f7a69e0d8c5d131af20f (patch)
treefd0e2e4079a1afd0ba6278d32169511defc97d08 /azalea-chat/tests
parenta5aa8ea0c0c3ad38b6e3a1ada74ea3ce87f6edcf (diff)
downloadazalea-drasl-e99a822995c80e1f95c5f7a69e0d8c5d131af20f.tar.xz
change to_ansi to not take args
Diffstat (limited to 'azalea-chat/tests')
-rwxr-xr-xazalea-chat/tests/integration_test.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/azalea-chat/tests/integration_test.rs b/azalea-chat/tests/integration_test.rs
index cc976888..35fab8d3 100755
--- a/azalea-chat/tests/integration_test.rs
+++ b/azalea-chat/tests/integration_test.rs
@@ -17,7 +17,7 @@ fn basic_ansi_test() {
.unwrap();
let component = Component::deserialize(&j).unwrap();
assert_eq!(
- component.to_ansi(None),
+ component.to_ansi(),
"\u{1b}[1m\u{1b}[38;2;255;85;85mhello\u{1b}[m"
);
}
@@ -53,7 +53,7 @@ fn complex_ansi_test() {
.unwrap();
let component = Component::deserialize(&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,
@@ -71,5 +71,5 @@ fn complex_ansi_test() {
fn component_from_string() {
let j: Value = serde_json::from_str("\"foo\"").unwrap();
let component = Component::deserialize(&j).unwrap();
- assert_eq!(component.to_ansi(None), "foo");
+ assert_eq!(component.to_ansi(), "foo");
}