Skip to content

Commit

Permalink
add test mod
Browse files Browse the repository at this point in the history
  • Loading branch information
darwin67 committed Oct 3, 2024
1 parent 10ae438 commit b956f32
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions inngest/src/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,23 @@ impl Signature {
Ok(())
}
}

#[cfg(test)]
mod tests {
use super::*;

const SIGNING_KEY: &str =
"signkey-test-8ee2262a15e8d3c42d6a840db7af3de2aab08ef632b32a37a687f24b34dba3ff";
const HASHED_SIGNING_KEY: &str =
"signkey-test-8ee2262a15e8d3c42d6a840db7af3de2aab08ef632b32a37a687f24b34dba3ff";

#[test]
fn hashed_signing_key() {
// TODO: verify that the hashed value matches
}

#[test]
fn verify_body() {
// TODO: verify the body
}
}

0 comments on commit b956f32

Please sign in to comment.