mirror of
https://github.com/usememos/memos.git
synced 2025-11-12 02:11:36 +08:00
Update test to test for version number set in version.go
This commit is contained in:
parent
b44dca2194
commit
d304add5d6
1 changed files with 2 additions and 1 deletions
|
|
@ -5,6 +5,7 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
"github.com/usememos/memos/server/version"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestGetCurrentSchemaVersion(t *testing.T) {
|
func TestGetCurrentSchemaVersion(t *testing.T) {
|
||||||
|
|
@ -13,5 +14,5 @@ func TestGetCurrentSchemaVersion(t *testing.T) {
|
||||||
|
|
||||||
currentSchemaVersion, err := ts.GetCurrentSchemaVersion()
|
currentSchemaVersion, err := ts.GetCurrentSchemaVersion()
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
require.Equal(t, "0.23.0", currentSchemaVersion)
|
require.Equal(t, version.Version, currentSchemaVersion)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue