diff options
| author | mat <github@matdoes.dev> | 2021-12-09 00:51:52 -0600 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2021-12-09 00:51:52 -0600 |
| commit | 221e54c7a648bd2e3d9be5514fdc4d4ed37a75b2 (patch) | |
| tree | d1c80b289b9079b50a434c3f199a7de378bd1191 /minecraft-chat/tests | |
| parent | bda5362bdf5331c77fdd8f36fae003853dd34bba (diff) | |
| download | azalea-drasl-221e54c7a648bd2e3d9be5514fdc4d4ed37a75b2.tar.xz | |
Implement more stuff with chat
Still need to parse styling from json
Diffstat (limited to 'minecraft-chat/tests')
| -rw-r--r-- | minecraft-chat/tests/integration_test.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/minecraft-chat/tests/integration_test.rs b/minecraft-chat/tests/integration_test.rs index 46e18457..9fd9c093 100644 --- a/minecraft-chat/tests/integration_test.rs +++ b/minecraft-chat/tests/integration_test.rs @@ -5,9 +5,11 @@ use serde_json::{Result, Value}; fn test() { let j: Value = serde_json::from_str( r#"{ - "text":"hello" + "text": "hello", + "color": "red" }"#, ) .unwrap(); let component = Component::new(&j).unwrap(); + println!("println: {}", component.to_ansi(None)); } |
