use brawl_sun; use std::fs; #[test] fn test_get_brawlers() { let secret = fs::read_to_string("resources/secret.txt") .expect("Unable to read file"); let client = brawl_sun::client::new(&secret); let brawlers = client.get_brawlers(); assert_eq!(brawlers.items[0].name, "SHELLY"); }