mirror of
https://github.com/usememos/memos.git
synced 2024-12-26 07:01:17 +08:00
chore: fix workspace setting tests
This commit is contained in:
parent
1da0752922
commit
759f7c6171
1 changed files with 4 additions and 3 deletions
|
@ -22,9 +22,10 @@ func TestWorkspaceSettingV1Store(t *testing.T) {
|
|||
},
|
||||
})
|
||||
require.NoError(t, err)
|
||||
list, err := ts.ListWorkspaceSettings(ctx, &store.FindWorkspaceSetting{})
|
||||
setting, err := ts.GetWorkspaceSetting(ctx, &store.FindWorkspaceSetting{
|
||||
Name: storepb.WorkspaceSettingKey_GENERAL.String(),
|
||||
})
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, 1, len(list))
|
||||
require.Equal(t, workspaceSetting, list[0])
|
||||
require.Equal(t, workspaceSetting, setting)
|
||||
ts.Close()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue