From 221e54c7a648bd2e3d9be5514fdc4d4ed37a75b2 Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 9 Dec 2021 00:51:52 -0600 Subject: Implement more stuff with chat Still need to parse styling from json --- minecraft-chat/tests/integration_test.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'minecraft-chat/tests') 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)); } -- cgit v1.2.3