Skip to content

Commit

Permalink
test(client): add some validations to the test
Browse files Browse the repository at this point in the history
  • Loading branch information
danvergara committed Aug 14, 2023
1 parent 08e991f commit dd3e055
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pkg/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,10 @@ import (
"os"
"testing"

// mysql driver.
_ "github.com/go-sql-driver/mysql"
// postgres driver.
_ "github.com/lib/pq"
// sqlite driver.
_ "modernc.org/sqlite"

"github.com/stretchr/testify/assert"
_ "modernc.org/sqlite"

"github.com/danvergara/dblab/pkg/command"
"github.com/danvergara/dblab/pkg/drivers"
Expand Down Expand Up @@ -334,6 +330,7 @@ func TestMetadata(t *testing.T) {
m, err := c.Metadata("products")

assert.NoError(t, err)
assert.NotNil(t, m)

// Total count.
assert.Equal(t, m.TotalPages, 1)
Expand Down

0 comments on commit dd3e055

Please sign in to comment.