Skip to content

Commit

Permalink
test(config): update the test function to make sure the init function…
Browse files Browse the repository at this point in the history
… works as expected

86
  • Loading branch information
danvergara committed Dec 22, 2021
1 parent 6f30a35 commit 00b5fd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/config/.dblab.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ database:
password: "password"
user: "postgres"
driver: "postgres"
limit: 50
1 change: 1 addition & 0 deletions pkg/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ func TestInit(t *testing.T) {
assert.Equal(t, "postgres", opts.User)
assert.Equal(t, "password", opts.Pass)
assert.Equal(t, "postgres", opts.Driver)
assert.Equal(t, 50, opts.Limit)
}

0 comments on commit 00b5fd2

Please sign in to comment.