Updated deps

This commit is contained in:
Jamie Curnow
2024-09-09 08:42:30 +10:00
parent 16c0276401
commit f73e09007a
4 changed files with 46 additions and 140 deletions

View File

@ -37,7 +37,7 @@ func GetDB() *gorm.DB {
return dbInstance
}
// SetDB will set the dbOnstance to this
// SetDB will set the dbInstance to this
// Used by unit testing to set the db to a mock database
func SetDB(db *gorm.DB) {
dbInstance = db

View File

@ -1,11 +1,12 @@
package test
import (
"npm/internal/config"
"npm/internal/database"
"strings"
"testing"
"npm/internal/config"
"npm/internal/database"
"github.com/DATA-DOG/go-sqlmock"
"gorm.io/driver/postgres"
"gorm.io/gorm"