mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2025-12-06 07:12:46 +01:00
24 lines
533 B
Go
24 lines
533 B
Go
package app_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
|
|
"github.com/SecurityBrewery/catalyst/app"
|
|
"github.com/SecurityBrewery/catalyst/migrations"
|
|
catalystTesting "github.com/SecurityBrewery/catalyst/testing"
|
|
)
|
|
|
|
func Test_MigrateDBsDown(t *testing.T) {
|
|
t.Parallel()
|
|
|
|
catalystApp, _, cleanup := catalystTesting.App(t)
|
|
defer cleanup()
|
|
|
|
_, err := catalystApp.Dao().FindCollectionByNameOrId(migrations.ReactionCollectionName)
|
|
require.NoError(t, err)
|
|
|
|
require.NoError(t, app.MigrateDBsDown(catalystApp))
|
|
}
|