Skip to content
This repository has been archived by the owner on May 16, 2021. It is now read-only.

Commit

Permalink
test: add extra test for wrong json format
Browse files Browse the repository at this point in the history
  • Loading branch information
mainawycliffe committed Feb 15, 2020
1 parent 652c25f commit 5b6a622
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions firebase/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
3 changes: 3 additions & 0 deletions testdata/.firebaserc_wrong
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[
"test" : 123
]

0 comments on commit 5b6a622

Please sign in to comment.