Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
crisnicandrei committed Oct 23, 2024
1 parent 79e3b8a commit d074975
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,16 @@ describe('SidebarComponent', () => {
const { instance, inject } = await shallow.render();
const editService = inject(EditService);
spyOn(editService, 'openLocationDialog');

instance.canEdit = true;
instance.selectedItem = new RecordVO({});
instance.selectedItem = new RecordVO({});

instance.onLocationClick();

expect(editService.openLocationDialog).toHaveBeenCalledWith(instance.selectedItem);

expect(editService.openLocationDialog).toHaveBeenCalledWith(
instance.selectedItem,
);
});


it('should correctly update canEdit and canShare when checkPermissions is called', async () => {
const { instance } = await shallow.render();
Expand Down

0 comments on commit d074975

Please sign in to comment.