test(db): verify migrations stub loads embedded files and returns ErrNotConfigured
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package db
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestMigrateStubLoadsEmbeddedFiles(t *testing.T) {
|
||||
err := Migrate()
|
||||
if !errors.Is(err, ErrNotConfigured) {
|
||||
t.Errorf("Migrate stub err = %v, want ErrNotConfigured", err)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user