Skip to content

Commit

Permalink
Fix DateTimeSelectorSection test
Browse files Browse the repository at this point in the history
  • Loading branch information
Lawrence Owen committed Jan 21, 2025
1 parent de1282d commit 5d069bd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import WebMapServiceCatalogItem from "../../../../lib/Models/Catalog/Ows/WebMapS
import Terria from "../../../../lib/Models/Terria";
import { formatDateTime } from "../../../../lib/ReactViews/BottomDock/Timeline/DateFormats";
import DateTimeSelectorSection from "../../../../lib/ReactViews/Workbench/Controls/DateTimeSelectorSection";
import { terriaTheme } from "../../../../lib/ReactViews/StandardUserInterface";

describe("DateTimeSelectorSection", function () {
let terria: Terria;
Expand All @@ -24,7 +25,7 @@ describe("DateTimeSelectorSection", function () {
await wmsItem.loadMapItems();
act(() => {
testRenderer = TestRenderer.create(
<DateTimeSelectorSection item={wmsItem} />
<DateTimeSelectorSection theme={terriaTheme} item={wmsItem} />
);
});
buttons = testRenderer.root.findAllByType("button");
Expand Down

0 comments on commit 5d069bd

Please sign in to comment.