Add a public gpui::TestAppContext::new method

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Max Brunsfeld
2021-06-23 16:34:36 -07:00
co-authored by Nathan Sobo
parent f1587fbb6e
commit a57cb2b189
2 changed files with 22 additions and 21 deletions
+2 -2
View File
@@ -34,7 +34,7 @@ pub fn test(args: TokenStream, function: TokenStream) -> TokenStream {
fn #outer_fn_name() {
#inner_fn
#namespace::App::test_async((), move |cx| async {
#namespace::App::test_async(move |cx| async {
#inner_fn_name(cx).await;
});
}
@@ -45,7 +45,7 @@ pub fn test(args: TokenStream, function: TokenStream) -> TokenStream {
fn #outer_fn_name() {
#inner_fn
#namespace::App::test((), |cx| {
#namespace::App::test(|cx| {
#inner_fn_name(cx);
});
}