mirror of
https://github.com/usememos/memos.git
synced 2025-11-10 01:10:52 +08:00
18 lines
390 B
Go
18 lines
390 B
Go
package teststore
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
"github.com/usememos/memos/server/version"
|
|
)
|
|
|
|
func TestGetCurrentSchemaVersion(t *testing.T) {
|
|
ctx := context.Background()
|
|
ts := NewTestingStore(ctx, t)
|
|
|
|
currentSchemaVersion, err := ts.GetCurrentSchemaVersion()
|
|
require.NoError(t, err)
|
|
require.Equal(t, version.Version, currentSchemaVersion)
|
|
}
|