memos/store/test/migrator_test.go
2026-01-07 09:17:34 +08:00

17 lines
334 B
Go

package test
import (
"context"
"testing"
"github.com/stretchr/testify/require"
)
func TestGetCurrentSchemaVersion(t *testing.T) {
ctx := context.Background()
ts := NewTestingStore(ctx, t)
currentSchemaVersion, err := ts.GetCurrentSchemaVersion()
require.NoError(t, err)
require.Equal(t, "0.26.2", currentSchemaVersion)
}