mirror of
https://github.com/prymitive/karma
synced 2026-05-07 03:26:52 +00:00
fix(ui): update outdated UIDefaults fields
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user