Skip to content

Commit 0a4e2a6

Browse files
committed
add import in fileImport contents
1 parent 995a208 commit 0a4e2a6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Tests/RunnerLibTests/DangerFileGeneratorTests.swift

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,9 @@ extension DangerFileGeneratorTests {
112112
}
113113

114114
private var contentWithMultipleImports: String {
115-
"// fileImport: " + file2Path + "\n\n" +
116-
"// fileImport: " + file3Path + "\n" + contentWithOneImport
115+
"// fileImport: " + file2Path + "\n\n"
116+
+ "// fileImport: " + file3Path + "\n"
117+
+ contentWithOneImport
117118
}
118119

119120
private var file1Content: String {
@@ -125,12 +126,17 @@ extension DangerFileGeneratorTests {
125126

126127
private var file2Content: String {
127128
"""
129+
import Danger
130+
128131
file2Content ⚠️
129132
"""
130133
}
131134

132135
private var file3Content: String {
133136
"""
137+
import Danger
138+
import Foundation
139+
134140
file3Content 👩‍👩‍👦‍👦
135141
secondLine
136142
really really really really really really really really really really really really \

0 commit comments

Comments
 (0)