diff --git a/justfile b/justfile index 6a357186..f6493e87 100644 --- a/justfile +++ b/justfile @@ -20,3 +20,7 @@ commit MSG: @echo '==> Committing changes' cargo +nightly fmt && \ git commit -a -S -m "{{MSG}}" + +tarp ENV: + @echo '==> Checking test coverage' + ENVIRONMENT={{ENV}} cargo tarpaulin diff --git a/tests/integration.rs b/tests/integration.rs index c2abcafd..7495a55b 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -258,7 +258,9 @@ PROJECT_ID to be set", assert_eq!(claims.sub, sub_auth_hash); assert!(claims.iat < chrono::Utc::now().timestamp() + JWT_LEEWAY); assert!(claims.exp > chrono::Utc::now().timestamp() - JWT_LEEWAY); - // TODO: add more asserts + assert_eq!(claims.app, "https://my-test-app.com"); + assert_eq!(claims.aud, format!("did:pkh:{}", TEST_ACCOUNT)); + assert_eq!(claims.act, "notify_message"); let delete_params = json!({ "code": 400,