Skip to content

Commit

Permalink
Merge pull request #32 from ribice/spelling-fixes
Browse files Browse the repository at this point in the history
Improve spelling
  • Loading branch information
ribice authored Jul 28, 2018
2 parents 05e63cd + bef6be2 commit 2e77c5c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/api/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ func main() {

func addV1Services(cfg *config.Configuration, e *echo.Echo, db *pg.DB) {

// Initalize DB interfaces
// Initialize DB interfaces

userDB := pgsql.NewUserDB(db, e.Logger)
accDB := pgsql.NewAccountDB(db, e.Logger)

// Initalize services
// Initialize services

jwt := mw.NewJWT(cfg.JWT)
authSvc := auth.New(userDB, jwt)
Expand Down
3 changes: 3 additions & 0 deletions cmd/api/service/auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,9 @@ func TestMe(t *testing.T) {
path := ts.URL + "/me"
req, err := http.NewRequest("GET", path, nil)
req.Header.Set("Authorization", tt.header)
if err != nil {
t.Fatal(err)
}
res, err := client.Do(req)
if err != nil {
t.Fatal(err)
Expand Down

0 comments on commit 2e77c5c

Please sign in to comment.