Skip to content

Commit

Permalink
fix json test
Browse files Browse the repository at this point in the history
the json macro takes a json-like syntax, not a string
  • Loading branch information
divarvel committed Oct 5, 2024
1 parent d5003f3 commit ab861d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions biscuit-auth/tests/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,10 @@ fn json() {
let biscuit = biscuit!(r#"user(123)"#).build(&key_pair).unwrap();

let value: serde_json::Value = json!(
r#"{
{
"id": 123,
"roles": ["admin"]
}"#
}
);
let json_value: biscuit_auth::builder::Term = value.try_into().unwrap();

Expand Down

0 comments on commit ab861d1

Please sign in to comment.