Skip to content

Commit 3620f28

Browse files
committed
Renamed some tests and test parameters for clarity, and adhere to Go conventions (#74)
1 parent 8bf0710 commit 3620f28

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

firebase_test.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
package firebase
1616

1717
import (
18+
"fmt"
1819
"io/ioutil"
1920
"log"
2021
"net/http"
@@ -546,6 +547,15 @@ func TestAutoInit(t *testing.T) {
546547
} else {
547548
compareConfig(app, test.wantOptions, t)
548549
}
550+
t.Run(fmt.Sprintf("NewApp(%s)", test.name), func(t *testing.T) {
551+
overwriteEnv(firebaseEnvName, test.optionsConfig)
552+
app, err := NewApp(context.Background(), test.initOptions)
553+
if err != nil {
554+
t.Error(err)
555+
} else {
556+
compareConfig(app, test.wantOptions, t)
557+
}
558+
})
549559
}
550560
}
551561

0 commit comments

Comments
 (0)