diff options
Diffstat (limited to 'src/proxy_config.rs')
-rw-r--r-- | src/proxy_config.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/proxy_config.rs b/src/proxy_config.rs index bf7ae32..e45cc7b 100644 --- a/src/proxy_config.rs +++ b/src/proxy_config.rs @@ -355,16 +355,16 @@ pub fn spawn_proxy_config_task( #[cfg(test)] mod tests { - use super::*; + use super::*; - #[test] - fn test_parse_tricot_add_header_tag() { - match parse_tricot_add_header_tag("tricot-add-header Content-Security-Policy default-src 'none'; img-src 'self'; script-src 'self'; style-src 'self'") { + #[test] + fn test_parse_tricot_add_header_tag() { + match parse_tricot_add_header_tag("tricot-add-header Content-Security-Policy default-src 'none'; img-src 'self'; script-src 'self'; style-src 'self'") { Some((name, value)) => { assert_eq!(name, "Content-Security-Policy"); assert_eq!(value, "default-src 'none'; img-src 'self'; script-src 'self'; style-src 'self'"); } _ => panic!("Passed a valid tag but the function says it is not valid") } - } + } } |