You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: features/login/impl/src/test/kotlin/io/element/android/features/login/impl/DefaultLoginIntentResolverTest.kt
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ class DefaultLoginIntentResolverTest {
18
18
@Test
19
19
fun`nominal case`() {
20
20
val sut =DefaultLoginIntentResolver()
21
-
val uriString ="https://mobile.element.io/element?account_provider=example.org&login_hint=mxid:@alice:example.org"
21
+
val uriString ="https://mobile.element.io/element/?account_provider=example.org&login_hint=mxid:@alice:example.org"
22
22
assertThat(sut.parse(uriString)).isEqualTo(
23
23
LoginParams(
24
24
accountProvider ="example.org",
@@ -30,7 +30,7 @@ class DefaultLoginIntentResolverTest {
30
30
@Test
31
31
fun`extra unknown param`() {
32
32
val sut =DefaultLoginIntentResolver()
33
-
val uriString ="https://mobile.element.io/element?account_provider=example.org&login_hint=mxid:@alice:example.org&extra=uknown"
33
+
val uriString ="https://mobile.element.io/element/?account_provider=example.org&login_hint=mxid:@alice:example.org&extra=uknown"
34
34
assertThat(sut.parse(uriString)).isEqualTo(
35
35
LoginParams(
36
36
accountProvider ="example.org",
@@ -42,7 +42,7 @@ class DefaultLoginIntentResolverTest {
42
42
@Test
43
43
fun`no account provider`() {
44
44
val sut =DefaultLoginIntentResolver()
45
-
val uriString ="https://mobile.element.io/element?login_hint=mxid:@alice:example.org"
45
+
val uriString ="https://mobile.element.io/element/?login_hint=mxid:@alice:example.org"
46
46
assertThat(sut.parse(uriString)).isNull()
47
47
}
48
48
@@ -63,14 +63,14 @@ class DefaultLoginIntentResolverTest {
63
63
@Test
64
64
fun`wrong host`() {
65
65
val sut =DefaultLoginIntentResolver()
66
-
val uriString ="https://wrong.element.io/element?account_provider=example.org&login_hint=mxid:@alice:example.org"
66
+
val uriString ="https://wrong.element.io/element/?account_provider=example.org&login_hint=mxid:@alice:example.org"
67
67
assertThat(sut.parse(uriString)).isNull()
68
68
}
69
69
70
70
@Test
71
71
fun`no login_hint param`() {
72
72
val sut =DefaultLoginIntentResolver()
73
-
val uriString ="https://mobile.element.io/element?account_provider=example.org"
73
+
val uriString ="https://mobile.element.io/element/?account_provider=example.org"
0 commit comments