diff options
Diffstat (limited to 'minecraft-chat/tests')
| -rw-r--r-- | minecraft-chat/tests/integration_test.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/minecraft-chat/tests/integration_test.rs b/minecraft-chat/tests/integration_test.rs index 9fd9c093..0574861b 100644 --- a/minecraft-chat/tests/integration_test.rs +++ b/minecraft-chat/tests/integration_test.rs @@ -6,10 +6,11 @@ fn test() { let j: Value = serde_json::from_str( r#"{ "text": "hello", - "color": "red" + "color": "red", + "bold": true }"#, ) .unwrap(); let component = Component::new(&j).unwrap(); - println!("println: {}", component.to_ansi(None)); + assert_eq!(component.to_ansi(None), "\x1b[38;2;255;85;85mhello\x1b[m"); } |
