Skip to content

Commit

Permalink
Update test to test for version number set in version.go
Browse files Browse the repository at this point in the history
  • Loading branch information
RoccoSmit committed Nov 3, 2024
1 parent b44dca2 commit d304add
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/store/migrator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"testing"

"github.com/stretchr/testify/require"
"github.com/usememos/memos/server/version"
)

func TestGetCurrentSchemaVersion(t *testing.T) {
Expand All @@ -13,5 +14,5 @@ func TestGetCurrentSchemaVersion(t *testing.T) {

currentSchemaVersion, err := ts.GetCurrentSchemaVersion()
require.NoError(t, err)
require.Equal(t, "0.23.0", currentSchemaVersion)
require.Equal(t, version.Version, currentSchemaVersion)
}

0 comments on commit d304add

Please sign in to comment.