mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 14:26:04 +00:00
add basic test
This commit is contained in:
parent
8bc1fd2399
commit
bda5362bdf
1 changed files with 13 additions and 0 deletions
13
minecraft-chat/tests/integration_test.rs
Normal file
13
minecraft-chat/tests/integration_test.rs
Normal file
|
@ -0,0 +1,13 @@
|
|||
use minecraft_chat::component::Component;
|
||||
use serde_json::{Result, Value};
|
||||
|
||||
#[test]
|
||||
fn test() {
|
||||
let j: Value = serde_json::from_str(
|
||||
r#"{
|
||||
"text":"hello"
|
||||
}"#,
|
||||
)
|
||||
.unwrap();
|
||||
let component = Component::new(&j).unwrap();
|
||||
}
|
Loading…
Add table
Reference in a new issue