()
| 270 | #[test] |
| 271 | #[wasm_bindgen_test] |
| 272 | fn decode_header_only() { |
| 273 | let token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJjb21wYW55IjoiMTIzNDU2Nzg5MCIsInN1YiI6IkpvaG4gRG9lIn0.S"; |
| 274 | let header = decode_header(token).unwrap(); |
| 275 | assert_eq!(header.alg, Algorithm::HS256); |
| 276 | assert_eq!(header.typ, Some("JWT".to_string())); |
| 277 | } |
| 278 | |
| 279 | #[test] |
| 280 | #[wasm_bindgen_test] |
nothing calls this directly
no test coverage detected