fix(ui): update outdated UIDefaults fields

This commit is contained in:
Łukasz Mierzwa
2019-11-29 22:54:20 +00:00
parent 43b1734fa0
commit 4e01a34717
2 changed files with 2 additions and 2 deletions

View File

@@ -43,7 +43,7 @@ interface UIDefaults {
Refresh: number;
HideFiltersWhenIdle: boolean;
ColorTitlebar: boolean;
DarkTheme: boolean;
Theme: "light" | "dark" | "auto";
MinimalGroupWidth: number;
AlertsPerGroup: number;
CollapseGroups: "expanded" | "collapsed" | "collapsedOnMobile";

View File

@@ -34,7 +34,7 @@ it("renders without crashing with missing defaults div", () => {
fetch.mockResponse(JSON.stringify(response));
const Index = require("./index.tsx");
expect(Index).toBeTruthy();
expect(root.innerHTML).toMatch(/data-filters="foo=bar bar=~baz"/);
expect(root.innerHTML).toMatch(/data-theme="auto"/);
});
it("renders without crashing with defaults present", () => {