Skip to content

Commit

Permalink
adding instructions for implementing leagues for other tests in serve…
Browse files Browse the repository at this point in the history
…r_test
  • Loading branch information
cpustejovsky committed Oct 16, 2020
1 parent 3f04fe1 commit cae023d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions json.md
Original file line number Diff line number Diff line change
Expand Up @@ -452,8 +452,7 @@ Next, we'll want to extend our test so that we can control exactly what data we

We can update the test to assert that the league table contains some players that we will stub in our store.

Update `StubPlayerStore` to let it store a league, which is just a slice of `Player`. We'll store our expected data in there.

Update `StubPlayerStore` to let it store a league, which is just a slice of `Player`. We'll store our expected data in there. For `TestGETPlayers` and `TestStoreWins`, add `nil` to their instance of `StubPlayStore`.
```go
//server_test.go
type StubPlayerStore struct {
Expand Down

0 comments on commit cae023d

Please sign in to comment.