We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bf0710 commit 3620f28Copy full SHA for 3620f28
firebase_test.go
@@ -15,6 +15,7 @@
15
package firebase
16
17
import (
18
+ "fmt"
19
"io/ioutil"
20
"log"
21
"net/http"
@@ -546,6 +547,15 @@ func TestAutoInit(t *testing.T) {
546
547
} else {
548
compareConfig(app, test.wantOptions, t)
549
}
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
+ })
559
560
561
0 commit comments