From f01882554aeb9c96dafb77f63d526c0232e84cf6 Mon Sep 17 00:00:00 2001 From: Daniel M Date: Sat, 27 Apr 2024 21:02:32 -0400 Subject: [PATCH] refactor:test names --- .../ghmanager/psi/TestOutdatedVersionAnnotator.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/test/kotlin/com/dsoftware/ghmanager/psi/TestOutdatedVersionAnnotator.kt b/src/test/kotlin/com/dsoftware/ghmanager/psi/TestOutdatedVersionAnnotator.kt index 848cf84..8941296 100644 --- a/src/test/kotlin/com/dsoftware/ghmanager/psi/TestOutdatedVersionAnnotator.kt +++ b/src/test/kotlin/com/dsoftware/ghmanager/psi/TestOutdatedVersionAnnotator.kt @@ -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 @@ -93,6 +94,7 @@ class TestOutdatedVersionAnnotator { quickFixes.first().text ) } + fixture.tearDown() } @Test @@ -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: @@ -129,7 +132,9 @@ class TestOutdatedVersionAnnotator { uses: actions/checkout@v4 """.trimIndent() ) + executeSomeCoroutineTasksAndDispatchAllInvocationEvents(fixture.project) } + fixture.tearDown() } } \ No newline at end of file