Skip to content

Commit

Permalink
PB-30310 Fix column setting label now required relative tests
Browse files Browse the repository at this point in the history
Signed-off-by: Cedric Alfonsi <[email protected]>
  • Loading branch information
cedricalfonsi committed Mar 12, 2024
1 parent 7bd82fd commit 887ee79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe("GetResourceColumnsSettingController", () => {

it("Should retrieve the resource columns settings.", async() => {
const mockedAccount = {id: uuid()};
const columnsSetting = [{id: "name"}];
const columnsSetting = [{id: "name", label: "name"}];
const sorter = {propertyName: "name", asc: true};
const gridUserSetting = {columns_setting: columnsSetting, sorter: sorter};
jest.spyOn(browser.storage.local, "get").mockImplementationOnce(() => ({[`${RESOURCE_GRID_USER_SETTING_STORAGE_KEY}-${mockedAccount.id}`]: gridUserSetting}));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe("SetResourceColumnsSettingController", () => {
it("Should update the resource columns settings in the local storage.", async() => {
expect.assertions(1);
const mockedAccount = {id: uuid()};
const columnsSetting = [{id: "name"}];
const columnsSetting = [{id: "name", label: "name"}];
const sorter = {propertyName: "name", asc: true};
const gridUserSetting = {columns_setting: columnsSetting, sorter: sorter};
jest.spyOn(browser.storage.local, "set");
Expand Down

0 comments on commit 887ee79

Please sign in to comment.