Fix tests in crypto.rs
This commit is contained in:
@@ -370,12 +370,11 @@ pub fn encrypt(context: &HuskContext<'_>, body: &Bytes, recipients: &Vec<Recipie
|
|||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
pub mod tests {
|
pub mod tests {
|
||||||
use bytes::Bytes;
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
pub fn test_is_encrypted() {
|
pub fn test_is_encrypted() {
|
||||||
|
|
||||||
use crate::crypto::is_encrypted;
|
use super::*;
|
||||||
|
|
||||||
// cleartext
|
// cleartext
|
||||||
let body = b"Hello world";
|
let body = b"Hello world";
|
||||||
|
|||||||
Reference in New Issue
Block a user