@@ -13,7 +13,6 @@ import 'package:zulip/api/model/events.dart';
13
13
import 'package:zulip/api/model/initial_snapshot.dart' ;
14
14
import 'package:zulip/api/model/model.dart' ;
15
15
import 'package:zulip/api/route/events.dart' ;
16
- import 'package:zulip/api/route/messages.dart' ;
17
16
import 'package:zulip/api/route/realm.dart' ;
18
17
import 'package:zulip/log.dart' ;
19
18
import 'package:zulip/model/actions.dart' ;
@@ -471,31 +470,6 @@ void main() {
471
470
// (but they call the handleEvent method because it's the entry point).
472
471
});
473
472
474
- group ('PerAccountStore.sendMessage' , () {
475
- test ('smoke' , () async {
476
- final store = eg.store (initialSnapshot: eg.initialSnapshot (
477
- queueId: 'fb67bf8a-c031-47cc-84cf-ed80accacda8' ));
478
- final connection = store.connection as FakeApiConnection ;
479
- final stream = eg.stream ();
480
- connection.prepare (json: SendMessageResult (id: 12345 ).toJson ());
481
- await store.sendMessage (
482
- destination: StreamDestination (stream.streamId, eg.t ('world' )),
483
- content: 'hello' );
484
- check (connection.takeRequests ()).single.isA< http.Request > ()
485
- ..method.equals ('POST' )
486
- ..url.path.equals ('/api/v1/messages' )
487
- ..bodyFields.deepEquals ({
488
- 'type' : 'stream' ,
489
- 'to' : stream.streamId.toString (),
490
- 'topic' : 'world' ,
491
- 'content' : 'hello' ,
492
- 'read_by_sender' : 'true' ,
493
- 'queue_id' : 'fb67bf8a-c031-47cc-84cf-ed80accacda8' ,
494
- 'local_id' : store.outboxMessages.keys.single.toString (),
495
- });
496
- });
497
- });
498
-
499
473
group ('UpdateMachine.load' , () {
500
474
late TestGlobalStore globalStore;
501
475
late FakeApiConnection connection;
0 commit comments