mirror of
https://github.com/chatmail/core.git
synced 2026-05-20 07:16:31 +03:00
add a minimal test
This commit is contained in:
@@ -363,6 +363,14 @@ mod tests {
|
|||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
|
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
|
||||||
|
async fn test_create_qr_svg() -> Result<()> {
|
||||||
|
let svg = create_qr_svg("this is a test QR code \" < > &")?;
|
||||||
|
assert!(svg.contains("<svg"));
|
||||||
|
assert!(svg.contains("</svg>"));
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
|
||||||
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
|
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
|
||||||
async fn test_svg_escaping() {
|
async fn test_svg_escaping() {
|
||||||
let svg = inner_generate_secure_join_qr_code(
|
let svg = inner_generate_secure_join_qr_code(
|
||||||
|
|||||||
Reference in New Issue
Block a user