diff options
| author | mat <github@matdoes.dev> | 2021-12-10 18:03:28 +0000 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2021-12-10 18:03:28 +0000 |
| commit | 0dce5f56ce8c4ec0eb3ee4eb6c09b20956242dfa (patch) | |
| tree | 08c4d0de7f7a14238823f5666b8702329ac6cf52 /minecraft-chat/tests/integration_test.rs | |
| parent | f9f7e3498e63d6553b67cefc3958c98f009b33a2 (diff) | |
| download | azalea-drasl-0dce5f56ce8c4ec0eb3ee4eb6c09b20956242dfa.tar.xz | |
add formatting to some motds
Diffstat (limited to 'minecraft-chat/tests/integration_test.rs')
| -rw-r--r-- | minecraft-chat/tests/integration_test.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/minecraft-chat/tests/integration_test.rs b/minecraft-chat/tests/integration_test.rs index 4c8a39aa..a454ad3b 100644 --- a/minecraft-chat/tests/integration_test.rs +++ b/minecraft-chat/tests/integration_test.rs @@ -65,3 +65,10 @@ fn complex_ansi_test() { ) ); } + +#[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"); +} |
