File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -252,6 +252,17 @@ mod tests {
252
252
use chat_events:: { ChatClearEvent , SingleChatSendEvent } ;
253
253
use rsmc:: ChatMessage ;
254
254
255
+ fn get_chat_messages ( app : & mut App ) -> Vec < String > {
256
+ let mut messages = app
257
+ . world_mut ( )
258
+ . query :: < ( & Text , & chat_components:: ChatMessageElement ) > ( ) ;
259
+
260
+ messages
261
+ . iter ( app. world ( ) )
262
+ . map ( |( text, _) | text. 0 . clone ( ) )
263
+ . collect ( )
264
+ }
265
+
255
266
#[ test]
256
267
fn test_send_message_system ( ) {
257
268
let mut app = App :: new ( ) ;
@@ -291,17 +302,6 @@ mod tests {
291
302
) ;
292
303
}
293
304
294
- fn get_chat_messages ( app : & mut App ) -> Vec < String > {
295
- let mut messages = app
296
- . world_mut ( )
297
- . query :: < ( & Text , & chat_components:: ChatMessageElement ) > ( ) ;
298
-
299
- messages
300
- . iter ( app. world ( ) )
301
- . map ( |( text, _) | text. 0 . clone ( ) )
302
- . collect ( )
303
- }
304
-
305
305
#[ test]
306
306
fn test_chat_clear_system ( ) {
307
307
let mut app = App :: new ( ) ;
You can’t perform that action at this time.
0 commit comments