fix: hide default weather details (#6665)
This commit is contained in:
1 parent
f46ccadbe4
commit
2570de25a6
4 files changed
+10
-12
No files matched your search
@@ -69,13 +69,13 @@ describe("weather layout", () => {
|
||||
});
|
||||
|
||||
describe("weather defaults", () => {
|
||||
it("starts rich and static while preserving saved false values", () => {
|
||||
it("starts minimal and static while preserving saved false values", () => {
|
||||
const options = definition.createOptions();
|
||||
expect(options.showCity.defaultValue).toBe(true);
|
||||
expect(options.hasForecast.defaultValue).toBe(true);
|
||||
expect(options.showCity.defaultValue).toBe(false);
|
||||
expect(options.hasForecast.defaultValue).toBe(false);
|
||||
expect(options.forecastDayCount.defaultValue).toBe(3);
|
||||
expect(options.animateIcons.defaultValue).toBe(false);
|
||||
expect(options.showHumidity.defaultValue).toBe(true);
|
||||
expect(options.showHumidity.defaultValue).toBe(false);
|
||||
|
||||
const reduced = reduceWidgetOptionsWithDefinition(definition, {} as never, {
|
||||
showCity: false,
|
||||
|
||||
Reference in new issue
Block a user