Skip to content

Commit

Permalink
(hds-1514) Linting fixes after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
NikoHelle committed Feb 23, 2024
1 parent 22803f5 commit 67cede5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@use "../../Header.module.scss";
@use "../../../../styles/common.scss";
@use '../../Header.module.scss';
@use '../../../../styles/common.scss';

button.actionBarItem {
align-self: center;
Expand All @@ -22,8 +22,8 @@ button.actionBarItem {
height: var(--icon-size);
margin: 0 auto;
padding: 3px 0 0;
width: var(--icon-size);
pointer-events: none;
width: var(--icon-size);

& > svg {
display: block;
Expand All @@ -37,8 +37,8 @@ button.actionBarItem {
display: block;
font-size: var(--action-bar-item-title-font-size);
margin: 0 auto;
white-space: nowrap;
pointer-events: none;
white-space: nowrap;

& > svg {
display: block;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import openIdConfiguration from '../__mocks__/openIdConfiguration.json';
import { UserCreationProps, createSignInResponse, createUserAndPlaceUserToStorage } from './userTestUtil';
import { Beacon, ConnectedModule, createBeacon } from '../beacon/beacon';
// eslint-disable-next-line jest/no-mocks-import
import { MockedWindowLocationActions } from '../__mocks__/mockWindowLocation';
import { MockedWindowLocationActions } from '../../../utils/mockWindowLocation';

export type InitTestResult = {
oidcClient: OidcClient;
Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/utils/mockWindowLocation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export type MockedWindowLocationActions = {
setUrl: (url: string) => void;
};
export default function mockWindowLocation(): MockedWindowLocationActions {
const globalWin = (global as unknown) as Window;
const globalWin = global as unknown as Window;
let oldWindowLocation: Location | undefined = globalWin.location;

const unload = () => setTimeout(() => window.dispatchEvent(new Event('unload')), 20);
Expand Down Expand Up @@ -37,7 +37,7 @@ export default function mockWindowLocation(): MockedWindowLocationActions {
});

const getCalls = () => {
return (tracker.mock.calls as unknown) as string[];
return tracker.mock.calls as unknown as string[];
};

return {
Expand Down

0 comments on commit 67cede5

Please sign in to comment.