diff --git a/firebase/client_test.go b/firebase/client_test.go index 5f33896..67c2815 100644 --- a/firebase/client_test.go +++ b/firebase/client_test.go @@ -43,6 +43,15 @@ func TestFirebase_setProjectID(t *testing.T) { true, "", }, + { + "Test for wrong config file", + args{ + firebaseProjectConfigFile: "./../testdata/.firebaserc_wrong", + projectAlias: "default", + }, + true, + "", + }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { diff --git a/testdata/.firebaserc_wrong b/testdata/.firebaserc_wrong new file mode 100644 index 0000000..d8d2ada --- /dev/null +++ b/testdata/.firebaserc_wrong @@ -0,0 +1,3 @@ +[ + "test" : 123 +] \ No newline at end of file