File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
plugins/src/test/kotlin/com/google/firebase/gradle/plugins Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 17
17
package com.google.firebase.gradle.plugins
18
18
19
19
import io.kotest.core.spec.style.FunSpec
20
- import io.kotest.matchers.collections.beEmpty
21
- import io.kotest.matchers.file.exist
22
- import io.kotest.matchers.should
20
+ import io.kotest.matchers.file.shouldExist
21
+ import io.kotest.matchers.shouldBe
23
22
import java.io.File
24
23
import org.gradle.testkit.runner.GradleRunner
25
24
import org.junit.BeforeClass
@@ -39,9 +38,8 @@ class MakeReleaseNotesTests : FunSpec() {
39
38
" firebase-storage/build/tmp/makeReleaseNotes/release_notes.md"
40
39
)
41
40
42
- releaseNoteFile should exist()
43
-
44
- releaseNoteFile.readLines() diff expectedReleaseNoteFile.readLines() should beEmpty()
41
+ releaseNoteFile.shouldExist()
42
+ releaseNoteFile.readText() shouldBe expectedReleaseNoteFile.readText()
45
43
}
46
44
47
45
private fun buildReleaseNotes () =
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ import io.kotest.matchers.collections.shouldContainExactly
22
22
import io.kotest.matchers.collections.shouldHaveAtLeastSize
23
23
import io.kotest.matchers.collections.shouldHaveSize
24
24
import io.kotest.matchers.shouldBe
25
- import io.kotest.matchers.string.shouldMatch
26
25
import java.io.File
27
26
import org.gradle.testkit.runner.GradleRunner
28
27
import org.junit.BeforeClass
You can’t perform that action at this time.
0 commit comments