mirror of
https://github.com/nextcloud/android.git
synced 2024-11-21 20:55:31 +03:00
fix test
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
49b23d2a96
commit
3e0bb40a1b
1 changed files with 4 additions and 1 deletions
|
@ -40,7 +40,10 @@ class FileNameValidatorTests : AbstractIT() {
|
|||
@Test
|
||||
fun testInvalidCharacter() {
|
||||
val result = FileNameValidator.checkFileName("file<name", capability, targetContext)
|
||||
assertEquals("File name contains invalid characters: <", result)
|
||||
assertEquals(
|
||||
String.format(targetContext.getString(R.string.file_name_validator_error_invalid_character), "<"),
|
||||
result
|
||||
)
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in a new issue