Browse Source

reformat test code for latest ktlint release

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Andy Scherzinger 1 year ago
parent
commit
3a6e18c07e

+ 7 - 4
app/src/androidTest/java/com/nextcloud/talk/utils/ShareUtilsIT.kt

@@ -20,9 +20,12 @@ class ShareUtilsIT {
         return DateUtils.parseDate(
             dateStr, Locale.US,
             HttpUtils.httpDateFormatStr,
-            "EEE, dd MMM yyyy HH:mm:ss zzz", // RFC 822, updated by RFC 1123 with any TZ
-            "EEEE, dd-MMM-yy HH:mm:ss zzz", // RFC 850, obsoleted by RFC 1036 with any TZ.
-            "EEE MMM d HH:mm:ss yyyy", // ANSI C's asctime() format
+            // RFC 822, updated by RFC 1123 with any TZ
+            "EEE, dd MMM yyyy HH:mm:ss zzz",
+            // RFC 850, obsoleted by RFC 1036 with any TZ.
+            "EEEE, dd-MMM-yy HH:mm:ss zzz",
+            // ANSI C's asctime() format
+            "EEE MMM d HH:mm:ss yyyy",
             // Alternative formats.
             "EEE, dd-MMM-yyyy HH:mm:ss z",
             "EEE, dd-MMM-yyyy HH-mm-ss z",
@@ -35,7 +38,7 @@ class ShareUtilsIT {
             "EEE,dd-MMM-yy HH:mm:ss z",
             "EEE,dd-MMM-yyyy HH:mm:ss z",
             "EEE, dd-MM-yyyy HH:mm:ss z",
-            /* RI bug 6641315 claims a cookie of this format was once served by www.yahoo.com */
+            // RI bug 6641315 claims a cookie of this format was once served by www.yahoo.com
             "EEE MMM d yyyy HH:mm:ss z"
         )
     }

+ 2 - 6
app/src/test/java/com/nextcloud/talk/test/fakes/FakeCallRecordingRepository.kt

@@ -28,15 +28,11 @@ import io.reactivex.Observable
 
 class FakeCallRecordingRepository : CallRecordingRepository {
 
-    override fun startRecording(
-        roomToken: String
-    ): Observable<StartCallRecordingModel> {
+    override fun startRecording(roomToken: String): Observable<StartCallRecordingModel> {
         return Observable.just(StartCallRecordingModel(true))
     }
 
-    override fun stopRecording(
-        roomToken: String
-    ): Observable<StopCallRecordingModel> {
+    override fun stopRecording(roomToken: String): Observable<StopCallRecordingModel> {
         return Observable.just(StopCallRecordingModel(true))
     }
 }