Skip to main content

assert_json_eq

Function assert_json_eq 

Source
pub fn assert_json_eq(value: &Value, pointer: &str, expected: &Value)
Expand description

Assert that a JSON value at the given pointer equals the expected value.

let state = client.get_window_state(Some("main")).await?;
victauri_test::assert_json_eq(&state, "/visible", &json!(true));