mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-24 08:04:48 +01:00
test(WIP): added skeleton for testing of behaviour when deleting workspace with people attached.
Need to know what is the expected behaviour that we want.
This commit is contained in:
parent
35b9b12aaf
commit
84bfc45fc8
1 changed files with 17 additions and 0 deletions
|
@ -168,6 +168,23 @@ async fn test_deleting_twice_or_non_existing_is_an_error() {
|
|||
})
|
||||
.await
|
||||
}
|
||||
|
||||
// Now we can begin using WorkspaceFixtures for with a single user.
|
||||
|
||||
// #[tokio::test]
|
||||
// async fn test_delete_workspace_with_users_attached() {
|
||||
// WorkspaceFixture::one("bob", "to-be-deleted")
|
||||
// .with(|(client, workspace): &mut (crate::Client, crate::Workspace)| {
|
||||
|
||||
// async move {
|
||||
// client.delete_workspace(workspace.id()).await?;
|
||||
|
||||
// // TODO: I Don't know what should happen here.
|
||||
// Ok(())
|
||||
// }
|
||||
// })
|
||||
// .await
|
||||
// }
|
||||
.await;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue