Skip to content

Commit

Permalink
fix: more test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Rakowskiii committed Jul 28, 2023
1 parent f3a8d79 commit 139aca8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 139aca8

Please sign in to comment.