Skip to content

Commit 49005fe

Browse files
watzkuhonsi
authored andcommittedJan 17, 2024
docs: fix typo in example usage "occured" -> "occurred"
Also change it in some test descriptions where it matters even less.
1 parent f1c8757 commit 49005fe

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎docs/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ Alternatively, such error assertions on multi return value functions can be simp
161161
Similar, asserting that no error occurred is supported, too (where the other return values are allowed to take on any value):
162162

163163
```go
164-
Ω(MultipleReturnValuesFunc()).Error().ShouldNot(HaveOccured())
164+
Ω(MultipleReturnValuesFunc()).Error().ShouldNot(HaveOccurred())
165165
```
166166

167167
### Annotating Assertions

‎internal/async_assertion_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ var _ = Describe("Asynchronous Assertions", func() {
180180
Ω(ig.RegisteredHelpers).Should(ContainElement("(*AsyncAssertion).match"))
181181
})
182182

183-
It("renders the matcher's error if an error occured", func() {
183+
It("renders the matcher's error if an error occurred", func() {
184184
ig.G.Eventually(ERR_MATCH).WithTimeout(50 * time.Millisecond).WithPolling(10 * time.Millisecond).Should(SpecMatch())
185185
Ω(ig.FailureMessage).Should(ContainSubstring("Timed out after"))
186186
Ω(ig.FailureMessage).Should(ContainSubstring("The matcher passed to Eventually returned the following error:"))
@@ -443,7 +443,7 @@ var _ = Describe("Asynchronous Assertions", func() {
443443
Ω(ig.RegisteredHelpers).Should(ContainElement("(*AsyncAssertion).match"))
444444
})
445445

446-
It("renders the matcher's error if an error occured", func() {
446+
It("renders the matcher's error if an error occurred", func() {
447447
ig.G.Consistently(ERR_MATCH).Should(SpecMatch())
448448
Ω(ig.FailureMessage).Should(ContainSubstring("Failed after"))
449449
Ω(ig.FailureMessage).Should(ContainSubstring("The matcher passed to Consistently returned the following error:"))
@@ -1575,7 +1575,7 @@ sprocket:
15751575
})
15761576

15771577
When("the actual error is because there was an assertion failure in the function, and there are return values", func() {
1578-
It("emits a clear message about the error having occured", func() {
1578+
It("emits a clear message about the error having occurred", func() {
15791579
_, file, line, _ := runtime.Caller(0)
15801580
ig.G.Eventually(func(g Gomega) int {
15811581
g.Expect(true).To(BeFalse())

0 commit comments

Comments
 (0)
Please sign in to comment.