File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1521,6 +1521,15 @@ func (s *MethodTestSuite) TestUser() {
1521
1521
[]database.GetUserWorkspaceBuildParametersRow {},
1522
1522
)
1523
1523
}))
1524
+ s .Run ("GetUserAppearanceSettings" , s .Subtest (func (db database.Store , check * expects ) {
1525
+ ctx := context .Background ()
1526
+ u := dbgen .User (s .T (), db , database.User {})
1527
+ db .UpdateUserAppearanceSettings (ctx , database.UpdateUserAppearanceSettingsParams {
1528
+ UserID : u .ID ,
1529
+ ThemePreference : "light" ,
1530
+ })
1531
+ check .Args (u .ID ).Asserts (u , policy .ActionReadPersonal ).Returns ("light" )
1532
+ }))
1524
1533
s .Run ("UpdateUserAppearanceSettings" , s .Subtest (func (db database.Store , check * expects ) {
1525
1534
u := dbgen .User (s .T (), db , database.User {})
1526
1535
uc := database.UserConfig {
You can’t perform that action at this time.
0 commit comments