Skip to content

Commit 657f753

Browse files
authored
Fix typos (#53)
Fix some typos on tests and comments
1 parent 439b6b2 commit 657f753

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/error_tracker/telemetry_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ defmodule ErrorTracker.TelemetryTest do
1010
:ok
1111
end
1212

13-
test "event is emitted for new errors" do
13+
test "events are emitted for new errors" do
1414
# Since the error is new, both the new error and new occurrence events will be emitted
1515
report_error(fn -> raise "This is a test" end)
1616
assert_receive {:telemetry_event, [:error_tracker, :error, :new], _, %{error: %Error{}}}
@@ -29,7 +29,7 @@ defmodule ErrorTracker.TelemetryTest do
2929
%{occurrence: %Occurrence{}}}
3030
end
3131

32-
test "event is emitted for resolved and unresolved errors" do
32+
test "events are emitted for resolved and unresolved errors" do
3333
%Occurrence{error: error = %Error{}} = report_error(fn -> raise "This is a test" end)
3434

3535
# The resolved event will be emitted

test/error_tracker_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ defmodule ErrorTrackerTest do
2525
assert error.kind == to_string(ArithmeticError)
2626
assert error.reason == "bad argument in arithmetic expression"
2727

28-
# Elixir 1.17.0 reports this errors differntly than previous versions
28+
# Elixir 1.17.0 reports these errors differently than previous versions
2929
if Version.compare(System.version(), "1.17.0") == :lt do
3030
assert error.source_line =~ @relative_file_path
3131
else

0 commit comments

Comments
 (0)