Skip to content

Commit

Permalink
fix-errors-in-readme (#1244)
Browse files Browse the repository at this point in the history
  • Loading branch information
domcyrus committed Jul 26, 2023
1 parent 8f2740a commit 27c2f5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -15,7 +15,7 @@ import (
...
)

Describe("Checking books out of the library", Label("library"), func() {
var _ = Describe("Checking books out of the library", Label("library"), func() {
var library *libraries.Library
var book *books.Book
var valjean *users.User
Expand Down Expand Up @@ -50,7 +50,7 @@ Describe("Checking books out of the library", Label("library"), func() {

It("tells the user", func(ctx SpecContext) {
err := valjean.Checkout(ctx, library, "Les Miserables")
Expect(error).To(MatchError("Les Miserables is currently checked out"))
Expect(err).To(MatchError("Les Miserables is currently checked out"))
}, SpecTimeout(time.Second * 5))

It("lets the user place a hold and get notified later", func(ctx SpecContext) {
Expand All @@ -74,7 +74,7 @@ Describe("Checking books out of the library", Label("library"), func() {
When("the library does not have the book in question", func() {
It("tells the reader the book is unavailable", func(ctx SpecContext) {
err := valjean.Checkout(ctx, library, "Les Miserables")
Expect(error).To(MatchError("Les Miserables is not in the library catalog"))
Expect(err).To(MatchError("Les Miserables is not in the library catalog"))
}, SpecTimeout(time.Second * 5))
})
})
Expand Down

0 comments on commit 27c2f5d

Please sign in to comment.