Add a public gpui::TestAppContext::new method
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
co-authored by
Nathan Sobo
parent
f1587fbb6e
commit
a57cb2b189
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user