Skip to content

Commit eb0b054

Browse files
committed
address review comments #1674
1 parent 21f5c48 commit eb0b054

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/common/criticalitySettingsMenuItem.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const CriticalitySettingsMenuItem = () => {
2323
<GppMaybeIcon />
2424
</ListItemIcon>
2525
<ListItemText
26-
primary={`Switch to critical mode ${isCriticalMode ? 'off' : 'on'}`}
26+
primary={`Switch critical mode ${isCriticalMode ? 'off' : 'on'}`}
2727
/>
2828
</MenuItem>
2929
);

src/common/storage.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { createBooleanLocalStorage } from './storage';
22

3-
describe('adminModeStorage', () => {
3+
describe('isAdminModeStorage', () => {
44
const isAdminModeStorage = createBooleanLocalStorage('test');
55
const localStorageGetItemMock = vi.spyOn(
66
window.localStorage.__proto__,
@@ -24,7 +24,7 @@ describe('adminModeStorage', () => {
2424
localStorage.clear();
2525
});
2626

27-
describe('loadIsAdminMode', () => {
27+
describe('load', () => {
2828
it('should return true when stored value is "true"', () => {
2929
localStorageGetItemMock.mockImplementationOnce(() => 'true');
3030

@@ -59,7 +59,7 @@ describe('adminModeStorage', () => {
5959
});
6060
});
6161

62-
describe('saveIsAdminMode', () => {
62+
describe('save', () => {
6363
it('should store "true"', () => {
6464
isAdminModeStorage.save(true);
6565

@@ -73,7 +73,7 @@ describe('adminModeStorage', () => {
7373
});
7474
});
7575

76-
describe('clearIsAdminMode', () => {
76+
describe('clear', () => {
7777
it('should remove the key from localStorage', () => {
7878
isAdminModeStorage.clear();
7979

src/state/slices/cricticalitySlice.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ describe('criticalitySlice', () => {
77
expect(state).toEqual(initialState);
88
});
99

10-
it('should update isAdminMode', () => {
10+
it('should update isCriticalMode', () => {
1111
const action = setIsCriticalMode(true);
1212

1313
const state = reducer(initialState, action);

0 commit comments

Comments
 (0)