Skip to content

Commit

Permalink
refactor:test names
Browse files Browse the repository at this point in the history
  • Loading branch information
cunla committed Apr 28, 2024
1 parent d7a482c commit f018825
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import com.intellij.testFramework.runInEdtAndWait
import io.mockk.every
import io.mockk.impl.annotations.MockK
import io.mockk.junit5.MockKExtension
import org.junit.jupiter.api.AfterEach
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
Expand Down Expand Up @@ -93,6 +94,7 @@ class TestOutdatedVersionAnnotator {
quickFixes.first().text
)
}
fixture.tearDown()
}

@Test
Expand All @@ -118,7 +120,8 @@ class TestOutdatedVersionAnnotator {
WriteCommandAction.runWriteCommandAction(fixture.project) {
quickFix.invoke(fixture.project, fixture.editor, fixture.file)
}
Assertions.assertEquals(quickFix.file?.text,
Assertions.assertEquals(
quickFix.file?.text,
"""
jobs:
build:
Expand All @@ -129,7 +132,9 @@ class TestOutdatedVersionAnnotator {
uses: actions/checkout@v4
""".trimIndent()
)
executeSomeCoroutineTasksAndDispatchAllInvocationEvents(fixture.project)
}
fixture.tearDown()
}

}

0 comments on commit f018825

Please sign in to comment.