diff --git a/create_test.go b/create_test.go index debe4c5..2d727c8 100644 --- a/create_test.go +++ b/create_test.go @@ -52,14 +52,14 @@ func TestCreate(t *testing.T) { }) t.Run("should emit error for primary key not in columns", func(t *testing.T) { - _, _, err := bob.CreateTable("").Columns("name").Types("text").Primary("id").ToSql() + _, _, err := bob.CreateTable("users").Columns("name").Types("text").Primary("id").ToSql() if err.Error() != "supplied primary column name doesn't exists on columns" { t.Fatal("should throw an error, it didn't:", err.Error()) } }) t.Run("should emit error for unique key not in columns", func(t *testing.T) { - _, _, err := bob.CreateTable("").Columns("name").Types("text").Unique("id").ToSql() + _, _, err := bob.CreateTable("users").Columns("name").Types("text").Unique("id").ToSql() if err.Error() != "supplied unique column name doesn't exists on columns" { t.Fatal("should throw an error, it didn't:", err.Error()) }