Skip to content

Commit

Permalink
fix: remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonGolms committed Aug 31, 2022
1 parent 91920d5 commit 03bd72f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/components/Message/MessageAccessInformation.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ test.describe('MessageAccessInformation', () => {
await expect(component).toContainText('Explore:');
});

test('click on quote to navigate to microsoft docs about role-based access control', async ({ context, mount, page }) => {
test('click on quote to navigate to microsoft docs about role-based access control', async ({ context, mount }) => {
const component = await mount(
<div>
<MessageAccessInformation />
Expand All @@ -30,7 +30,7 @@ test.describe('MessageAccessInformation', () => {
await expect(await newPage.title()).toBeTruthy();
});

test('click on link to navigate to microsoft docs about app roles', async ({ context, mount, page }) => {
test('click on link to navigate to microsoft docs about app roles', async ({ context, mount }) => {
const component = await mount(
<div>
<MessageAccessInformation />
Expand Down
6 changes: 3 additions & 3 deletions src/components/Message/MessagePermissionsInformation.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ test.describe('MessagePermissionsInformation', () => {
await expect(component).toContainText('Explore:');
});

test('click on quote to navigate to microsoft docs about user concept overview', async ({ context, mount, page }) => {
test('click on quote to navigate to microsoft docs about user concept overview', async ({ context, mount }) => {
const component = await mount(
<div>
<MessagePermissionsInformation />
Expand All @@ -30,7 +30,7 @@ test.describe('MessagePermissionsInformation', () => {
await expect(await newPage.title()).toBeTruthy();
});

test('click on link to navigate to microsoft docs about microsoft graph', async ({ context, mount, page }) => {
test('click on link to navigate to microsoft docs about microsoft graph', async ({ context, mount }) => {
const component = await mount(
<div>
<MessagePermissionsInformation />
Expand All @@ -44,7 +44,7 @@ test.describe('MessagePermissionsInformation', () => {
await expect(await newPage.title()).toBeTruthy();
});

test('click on link to navigate to microsoft docs about permissions and consent', async ({ context, mount, page }) => {
test('click on link to navigate to microsoft docs about permissions and consent', async ({ context, mount }) => {
const component = await mount(
<div>
<MessagePermissionsInformation />
Expand Down
2 changes: 1 addition & 1 deletion src/data/user/user.slice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const initialState: UserState = {

const userSlice = createSlice({
extraReducers: (builder) => {
builder.addCase(PURGE, (state) => {
builder.addCase(PURGE, (_state) => {
return initialState;
});
},
Expand Down
4 changes: 2 additions & 2 deletions src/service-worker-registration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ const isLocalhost = Boolean(
);

type Config = {
onSuccess?: (registration: ServiceWorkerRegistration) => void;
onUpdate?: (registration: ServiceWorkerRegistration) => void;
onSuccess?: (_registration: ServiceWorkerRegistration) => void;
onUpdate?: (_registration: ServiceWorkerRegistration) => void;
};

export function register(config?: Config) {
Expand Down
2 changes: 1 addition & 1 deletion src/services/api.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { SerializedError } from '@reduxjs/toolkit';
import { FetchBaseQueryError, skipToken } from '@reduxjs/toolkit/query';

export const blobToBase64 = async (blob: Blob) => {
return new Promise((resolve, _) => {
return new Promise((resolve) => {
const reader = new FileReader();
reader.onloadend = () => resolve(reader.result?.toString() || '');
reader.readAsDataURL(blob);
Expand Down

0 comments on commit 03bd72f

Please sign in to comment.