lint, tests

This commit is contained in:
tobi 2024-03-22 14:39:35 +01:00
parent dbba95f11e
commit da12f8f359
2 changed files with 5 additions and 5 deletions

View file

@ -42,8 +42,8 @@ func (suite *ThemesTestSuite) TestPopulateThemes() {
if theme == nil {
suite.FailNow("theme was nil")
}
suite.Equal("Blurple Light", theme.Title)
suite.Equal("Light blurple theme", theme.Description)
suite.Equal("Blurple (light)", theme.Title)
suite.Equal("Official light blurple theme", theme.Description)
suite.Equal("blurple-light.css", theme.FileName)
}

View file

@ -79,15 +79,15 @@ function UserProfileForm({ data: profile }) {
// Parse out available theme options into nice format.
const { data: themes } = useAccountThemesQuery();
let themeOptions = { "": "Default" }
let themeOptions = { "": "Default" };
themes?.forEach((theme) => {
let key = theme.file_name;
let value = theme.title;
if (theme.description) {
value += " - " + theme.description;
}
themeOptions[key] = value
})
themeOptions[key] = value;
});
const form = {
avatar: useFileInput("avatar", { withPreview: true }),