Skip to content

Commit

Permalink
Renamed some tests and test parameters for clarity, and adhere to Go …
Browse files Browse the repository at this point in the history
…conventions (#74)
  • Loading branch information
hiranya911 committed Jun 11, 2018
1 parent 8bf0710 commit 3620f28
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions firebase_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
package firebase

import (
"fmt"
"io/ioutil"
"log"
"net/http"
Expand Down Expand Up @@ -546,6 +547,15 @@ func TestAutoInit(t *testing.T) {
} else {
compareConfig(app, test.wantOptions, t)
}
t.Run(fmt.Sprintf("NewApp(%s)", test.name), func(t *testing.T) {
overwriteEnv(firebaseEnvName, test.optionsConfig)
app, err := NewApp(context.Background(), test.initOptions)
if err != nil {
t.Error(err)
} else {
compareConfig(app, test.wantOptions, t)
}
})
}
}

Expand Down

0 comments on commit 3620f28

Please sign in to comment.