@@ -328,7 +328,7 @@ void main() {
328
328
test ('smoke' , () {
329
329
return FakeApiConnection .with_ ((connection) async {
330
330
await checkSendMessage (connection,
331
- destination: StreamDestination (streamId, topic), content: content,
331
+ destination: const StreamDestination (streamId, topic), content: content,
332
332
queueId: 'abc:123' ,
333
333
localId: '456' ,
334
334
readBySender: true ,
@@ -347,7 +347,7 @@ void main() {
347
347
test ('to stream' , () {
348
348
return FakeApiConnection .with_ ((connection) async {
349
349
await checkSendMessage (connection,
350
- destination: StreamDestination (streamId, topic), content: content,
350
+ destination: const StreamDestination (streamId, topic), content: content,
351
351
readBySender: true ,
352
352
expectedBodyFields: {
353
353
'type' : 'stream' ,
@@ -362,7 +362,7 @@ void main() {
362
362
test ('to DM conversation' , () {
363
363
return FakeApiConnection .with_ ((connection) async {
364
364
await checkSendMessage (connection,
365
- destination: DmDestination (userIds: userIds), content: content,
365
+ destination: const DmDestination (userIds: userIds), content: content,
366
366
readBySender: true ,
367
367
expectedBodyFields: {
368
368
'type' : 'direct' ,
@@ -376,7 +376,7 @@ void main() {
376
376
test ('to DM conversation, with legacy type "private"' , () {
377
377
return FakeApiConnection .with_ (zulipFeatureLevel: 173 , (connection) async {
378
378
await checkSendMessage (connection,
379
- destination: DmDestination (userIds: userIds), content: content,
379
+ destination: const DmDestination (userIds: userIds), content: content,
380
380
readBySender: true ,
381
381
expectedBodyFields: {
382
382
'type' : 'private' ,
@@ -391,7 +391,7 @@ void main() {
391
391
test ('when readBySender is null, sends a User-Agent we know the server will recognize' , () {
392
392
return FakeApiConnection .with_ ((connection) async {
393
393
await checkSendMessage (connection,
394
- destination: StreamDestination (streamId, topic), content: content,
394
+ destination: const StreamDestination (streamId, topic), content: content,
395
395
readBySender: null ,
396
396
expectedBodyFields: {
397
397
'type' : 'stream' ,
@@ -406,7 +406,7 @@ void main() {
406
406
test ('legacy: when server does not support readBySender, sends a User-Agent the server will recognize' , () {
407
407
return FakeApiConnection .with_ (zulipFeatureLevel: 235 , (connection) async {
408
408
await checkSendMessage (connection,
409
- destination: StreamDestination (streamId, topic), content: content,
409
+ destination: const StreamDestination (streamId, topic), content: content,
410
410
readBySender: true ,
411
411
expectedBodyFields: {
412
412
'type' : 'stream' ,
0 commit comments