phoenix/database/migrations_test.go

18 lines
284 B
Go

package database
import (
"testing"
_ "github.com/mattn/go-sqlite3"
)
func TestMigrations(t *testing.T) {
initTestDatabase(t)
defer deleteTestDatabase(t)
// We should be able to call the function multiple times.
if err := ApplyMigrations(); err != nil {
t.Fatal(err)
}
}