Skip to content

Commit 995a208

Browse files
committed
add header on single import pattern
1 parent e658abc commit 995a208

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Tests/RunnerLibTests/DangerFileGeneratorTests.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ extension DangerFileGeneratorTests {
106106
}
107107

108108
private var contentWithOneImport: String {
109-
"// fileImport: " + file1Path + "\n" + contentWithoutImports
109+
headerForContentWithoutImports
110+
+ "// fileImport: " + file1Path + "\n"
111+
+ contentWithoutImports
110112
}
111113

112114
private var contentWithMultipleImports: String {

Tests/RunnerLibTests/__Snapshots__/DangerFileGeneratorTests/testItGeneratesTheCorrectFileWhenThereIsASingleImport.1.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
import Danger
2+
3+
let danger = Danger()
4+
15
file1Content 👍🏻
26
secondLine
37
message("Text")

0 commit comments

Comments
 (0)