Skip to content

Commit

Permalink
update superAdmninScreen.spec.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
IITI-tushar committed Jan 26, 2025
1 parent 9e3469e commit 7548734
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/SuperAdminScreen/SuperAdminScreen.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ import { store } from 'state/store';
import i18nForTest from 'utils/i18nForTest';
import SuperAdminScreen from './SuperAdminScreen';
import { describe, test, expect } from 'vitest';
import useLocalStorage from 'utils/useLocalstorage';
import '../../style/app.module.css';
const { setItem } = useLocalStorage();

const resizeWindow = (width: number): void => {
window.innerWidth = width;
Expand All @@ -21,7 +23,7 @@ const clickToggleMenuBtn = (toggleButton: HTMLElement): void => {

describe('Testing LeftDrawer in SuperAdminScreen', () => {
beforeAll(() => {
localStorage.setItem('name', 'John Doe');
setItem('name', 'John Doe');
});
afterAll(() => {
localStorage.clear();
Expand Down

0 comments on commit 7548734

Please sign in to comment.