Skip to content

Commit b7197ed

Browse files
committed
Simplify E2E test expectations
1 parent 9b73a41 commit b7197ed

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/e2e_data.exs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@
8282
}
8383
end
8484
85-
def format_message(analysis) do
86-
"PR Analysis: event=\#{analysis.event}"
85+
def format_message(_analysis) do
86+
"PR Analysis: ok"
8787
end
8888
end
8989
@@ -92,7 +92,7 @@
9292
PRAnalyzer.format_message(analysis)
9393
"""
9494
},
95-
expected: "PR Analysis: event=push"
95+
expected: "PR Analysis: ok"
9696
},
9797
%{
9898
name: "File scripts can use relative require for helper modules",
@@ -156,8 +156,8 @@
156156
""",
157157
"lib/formatter.ex" => """
158158
defmodule Formatter do
159-
def format_analysis(analysis) do
160-
"Event type: \#{String.capitalize(analysis.type)}"
159+
def format_analysis(_analysis) do
160+
"Event OK"
161161
end
162162
end
163163
""",
@@ -171,6 +171,6 @@
171171
end
172172
"""
173173
},
174-
expected: "Event type: Push"
174+
expected: "Event OK"
175175
}
176176
]

0 commit comments

Comments
 (0)