@@ -325,7 +325,7 @@ void main() {
325
325
test ('smoke' , () {
326
326
return FakeApiConnection .with_ ((connection) async {
327
327
await checkSendMessage (connection,
328
- destination: StreamDestination (streamId, topic), content: content,
328
+ destination: const StreamDestination (streamId, topic), content: content,
329
329
queueId: 'abc:123' ,
330
330
localId: '456' ,
331
331
readBySender: true ,
@@ -344,7 +344,7 @@ void main() {
344
344
test ('to stream' , () {
345
345
return FakeApiConnection .with_ ((connection) async {
346
346
await checkSendMessage (connection,
347
- destination: StreamDestination (streamId, topic), content: content,
347
+ destination: const StreamDestination (streamId, topic), content: content,
348
348
readBySender: true ,
349
349
expectedBodyFields: {
350
350
'type' : 'stream' ,
@@ -359,7 +359,7 @@ void main() {
359
359
test ('to DM conversation' , () {
360
360
return FakeApiConnection .with_ ((connection) async {
361
361
await checkSendMessage (connection,
362
- destination: DmDestination (userIds: userIds), content: content,
362
+ destination: const DmDestination (userIds: userIds), content: content,
363
363
readBySender: true ,
364
364
expectedBodyFields: {
365
365
'type' : 'direct' ,
@@ -373,7 +373,7 @@ void main() {
373
373
test ('to DM conversation, with legacy type "private"' , () {
374
374
return FakeApiConnection .with_ (zulipFeatureLevel: 173 , (connection) async {
375
375
await checkSendMessage (connection,
376
- destination: DmDestination (userIds: userIds), content: content,
376
+ destination: const DmDestination (userIds: userIds), content: content,
377
377
readBySender: true ,
378
378
expectedBodyFields: {
379
379
'type' : 'private' ,
@@ -388,7 +388,7 @@ void main() {
388
388
test ('when readBySender is null, sends a User-Agent we know the server will recognize' , () {
389
389
return FakeApiConnection .with_ ((connection) async {
390
390
await checkSendMessage (connection,
391
- destination: StreamDestination (streamId, topic), content: content,
391
+ destination: const StreamDestination (streamId, topic), content: content,
392
392
readBySender: null ,
393
393
expectedBodyFields: {
394
394
'type' : 'stream' ,
@@ -403,7 +403,7 @@ void main() {
403
403
test ('legacy: when server does not support readBySender, sends a User-Agent the server will recognize' , () {
404
404
return FakeApiConnection .with_ (zulipFeatureLevel: 235 , (connection) async {
405
405
await checkSendMessage (connection,
406
- destination: StreamDestination (streamId, topic), content: content,
406
+ destination: const StreamDestination (streamId, topic), content: content,
407
407
readBySender: true ,
408
408
expectedBodyFields: {
409
409
'type' : 'stream' ,
0 commit comments