Skip to content

Commit d42fb2f

Browse files
committed
Update locale change method in test
Replaces the call to locale.setLocale with locale.set in LocaleKtTest to match the updated API for changing the locale.
1 parent 06e3094 commit d42fb2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/test/processing/app/LocaleKtTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class LocaleKtTest {
2828
Text(locale["menu.file.new"], modifier = Modifier.testTag("localisedText"))
2929

3030
Button(onClick = {
31-
locale.setLocale(java.util.Locale("es"))
31+
locale.set(java.util.Locale("es"))
3232
}, modifier = Modifier.testTag("button")) {
3333
Text("Change")
3434
}

0 commit comments

Comments
 (0)