Skip to content

Commit 27c2f5d

Browse files
authoredJul 26, 2023
fix-errors-in-readme (#1244)
1 parent 8f2740a commit 27c2f5d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
...
1616
)
1717

18-
Describe("Checking books out of the library", Label("library"), func() {
18+
var _ = Describe("Checking books out of the library", Label("library"), func() {
1919
var library *libraries.Library
2020
var book *books.Book
2121
var valjean *users.User
@@ -50,7 +50,7 @@ Describe("Checking books out of the library", Label("library"), func() {
5050

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

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

0 commit comments

Comments
 (0)
Please sign in to comment.