JMAP for Calendars passing tests
This commit is contained in:
@@ -12,7 +12,7 @@ use jmap_proto::{
|
||||
use serde_json::json;
|
||||
|
||||
pub async fn test(params: &mut JMAPTest) {
|
||||
println!("Running file storage ACL tests...");
|
||||
println!("Running File Storage ACL tests...");
|
||||
let john = params.account("jdoe@example.com");
|
||||
let jane = params.account("jane.smith@example.com");
|
||||
let john_id = john.id_string().to_string();
|
||||
@@ -25,6 +25,7 @@ pub async fn test(params: &mut JMAPTest) {
|
||||
[json!({
|
||||
"name": "Test #1",
|
||||
})],
|
||||
Vec::<(&str, &str)>::new(),
|
||||
)
|
||||
.await;
|
||||
let john_folder_id = response.created(0).id().to_string();
|
||||
@@ -313,6 +314,7 @@ pub async fn test(params: &mut JMAPTest) {
|
||||
[json!({
|
||||
"name": "A new shared folder",
|
||||
})],
|
||||
Vec::<(&str, &str)>::new()
|
||||
)
|
||||
.await
|
||||
.not_created(0)
|
||||
|
||||
@@ -10,7 +10,7 @@ use jmap_proto::{object::file_node::FileNodeProperty, request::method::MethodObj
|
||||
use serde_json::json;
|
||||
|
||||
pub async fn test(params: &mut JMAPTest) {
|
||||
println!("Running file storage tests...");
|
||||
println!("Running File Storage tests...");
|
||||
let account = params.account("jdoe@example.com");
|
||||
|
||||
// Obtain change id
|
||||
@@ -42,6 +42,7 @@ pub async fn test(params: &mut JMAPTest) {
|
||||
"parentId": "#i1",
|
||||
}),
|
||||
],
|
||||
Vec::<(&str, &str)>::new(),
|
||||
)
|
||||
.await;
|
||||
let root_folder_id = response.created(0).id().to_string();
|
||||
@@ -190,6 +191,7 @@ pub async fn test(params: &mut JMAPTest) {
|
||||
"name": "..",
|
||||
}),
|
||||
],
|
||||
Vec::<(&str, &str)>::new(),
|
||||
)
|
||||
.await;
|
||||
assert_eq!(
|
||||
|
||||
Reference in New Issue
Block a user