Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
[Android] Fix failing test in EditorViewModelTest.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
aringenbach committed Oct 11, 2023
1 parent cb6c101 commit 3f2f1bd
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,13 @@ internal class EditorViewModelTest {

@Test
fun `given internal edit link action, when get, it returns the right action`() {
composer.givenLinkAction(ComposerLinkAction.Edit(linkUrl))
composer.givenLinkAction(ComposerLinkAction.Edit(linkUrl, linkText))

assertThat(
viewModel.getLinkAction(), equalTo(
LinkAction.SetLink(
currentUrl = linkUrl
LinkAction.EditLink(
currentUrl = linkUrl,
currentText = linkText
)
)
)
Expand Down

0 comments on commit 3f2f1bd

Please sign in to comment.