mirror of
https://github.com/usememos/memos.git
synced 2024-11-16 03:34:33 +08:00
18 lines
339 B
Go
18 lines
339 B
Go
|
package teststore
|
||
|
|
||
|
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.22.4", currentSchemaVersion)
|
||
|
}
|