Skip to content

Commit

Permalink
Fix return value in index.md (#1208)
Browse files Browse the repository at this point in the history
  • Loading branch information
arosh authored May 28, 2023
1 parent 3e39231 commit 4c2ae23
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4387,7 +4387,7 @@ Eventually(func(g Gomega, ctx SpecContext) []string { //note: g Gomega must go f
for _, message := range messages {
subjects = append(subjects, message.Subject)
}
return subjects, nil
return subjects
}).WithContext(ctx).Should(ContainElement(fmt.Sprintf(`"%s" is available for pickup`, book.Title)))
```

Expand All @@ -4402,7 +4402,6 @@ Eventually(func(g Gomega, ctx SpecContext) {
subjects = append(subjects, message.Subject)
}
g.Expect(subjects).To(ContainElement(fmt.Sprintf(`"%s" is available for pickup`, book.Title)))
return subjects, nil
}).WithContext(ctx).Should(Succeed())
```

Expand All @@ -4419,7 +4418,6 @@ Eventually(func(g Gomega, ctx SpecContext) {
expectedSubject := fmt.Sprintf(`"%s" is available for pickup`, book.Title)
subjectGetter := func(m gmail.Message) string { return m.Subject }
g.Expect(messages).To(ContainElement(WithTransform(subjectGetter, Equal(expectedSubject))))
return messages, nil
}).WithContext(ctx).Should(Succeed())
```

Expand Down

0 comments on commit 4c2ae23

Please sign in to comment.