Skip to content

Commit

Permalink
test: fix arguments to ViewState
Browse files Browse the repository at this point in the history
There are two arguments required
for ViewStateOptions, so put in
a second argument with an undefined
value which is what is used
at other call sites.
  • Loading branch information
pjonsson committed Jun 19, 2024
1 parent d1a02ff commit ab1e52b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion test/Models/ViewStateSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ describe("ViewState", function () {
baseUrl: "./"
});
viewState = new ViewState({
terria: terria
terria: terria,
catalogSearchProvider: undefined
});
});

Expand Down
3 changes: 2 additions & 1 deletion test/ReactViews/DataCatalogSpec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ describe("DataCatalog", function () {
baseUrl: "./"
});
viewState = new ViewState({
terria: terria
terria: terria,
catalogSearchProvider: undefined
});
});

Expand Down
3 changes: 2 additions & 1 deletion test/ReactViews/StandardUserInterfaceSpec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ describe("StandardUserInterface", function () {
baseUrl: "./"
});
viewState = new ViewState({
terria: terria
terria: terria,
catalogSearchProvider: undefined
});
});

Expand Down
2 changes: 1 addition & 1 deletion test/ReactViews/Workbench/WorkbenchItemSpec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe("WorkbenchItem", function () {

beforeEach(function () {
terria = new Terria({ baseUrl: "./" });
viewState = new ViewState({ terria });
viewState = new ViewState({ terria, catalogSearchProvider: undefined });
item = new CatalogItem(terria);
});

Expand Down

0 comments on commit ab1e52b

Please sign in to comment.