mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
Add test for kebab_case serialization of From header
This commit is contained in:
@@ -41,3 +41,16 @@ impl HeaderDef {
|
|||||||
self.to_string()
|
self.to_string()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(test)]
|
||||||
|
mod tests {
|
||||||
|
use super::*;
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
/// Test that kebab_case serialization works as expected
|
||||||
|
fn kebab_test() {
|
||||||
|
assert_eq!(HeaderDef::From_.to_string(), "from");
|
||||||
|
|
||||||
|
assert_eq!(HeaderDef::_TestHeader.to_string(), "test-header");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user