mirror of
https://github.com/chatmail/core.git
synced 2026-05-16 21:36:30 +03:00
fix test_decode_account_bad_scheme
since #1770, http: is a correct scheme.
This commit is contained in:
@@ -623,7 +623,7 @@ mod tests {
|
|||||||
let ctx = TestContext::new().await;
|
let ctx = TestContext::new().await;
|
||||||
let res = check_qr(
|
let res = check_qr(
|
||||||
&ctx.ctx,
|
&ctx.ctx,
|
||||||
"DCACCOUNT:http://example.org/new_email?t=1w_7wDjgjelxeX884x96v3",
|
"DCACCOUNT:ftp://example.org/new_email?t=1w_7wDjgjelxeX884x96v3",
|
||||||
)
|
)
|
||||||
.await;
|
.await;
|
||||||
assert_eq!(res.get_state(), LotState::QrError);
|
assert_eq!(res.get_state(), LotState::QrError);
|
||||||
@@ -632,7 +632,7 @@ mod tests {
|
|||||||
// Test it again with lowercased "dcaccount:" uri scheme
|
// Test it again with lowercased "dcaccount:" uri scheme
|
||||||
let res = check_qr(
|
let res = check_qr(
|
||||||
&ctx.ctx,
|
&ctx.ctx,
|
||||||
"dcaccount:http://example.org/new_email?t=1w_7wDjgjelxeX884x96v3",
|
"dcaccount:ftp://example.org/new_email?t=1w_7wDjgjelxeX884x96v3",
|
||||||
)
|
)
|
||||||
.await;
|
.await;
|
||||||
assert_eq!(res.get_state(), LotState::QrError);
|
assert_eq!(res.get_state(), LotState::QrError);
|
||||||
|
|||||||
Reference in New Issue
Block a user