From ab861d1a2c412dec86760aed7ecc098711417ae4 Mon Sep 17 00:00:00 2001 From: Clement Delafargue Date: Sat, 5 Oct 2024 14:07:20 +0200 Subject: [PATCH] fix json test the json macro takes a json-like syntax, not a string --- biscuit-auth/tests/macros.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/biscuit-auth/tests/macros.rs b/biscuit-auth/tests/macros.rs index 6af98924..b2146294 100644 --- a/biscuit-auth/tests/macros.rs +++ b/biscuit-auth/tests/macros.rs @@ -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();