Skip to content

Commit b8705dd

Browse files
committed
refactor: TT-332 changes in the unit test description of the dark mode component and style name of the sidebar component
1 parent 1e2e392 commit b8705dd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/app/modules/shared/components/dark-mode/dark-mode.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ describe('DarkModeComponent', () => {
4949
expect(component.theme).toEqual('light');
5050
});
5151

52-
it('should be light theme if only the theme property exists in local storage and not its value', () => {
52+
it('should be light mode if property ‘theme’ does not have a value in local storage', () => {
5353
localStorage.setItem('theme', '');
5454
component.checkThemeInLocalStorage();
5555
expect(component.theme).toEqual('light');
@@ -85,7 +85,7 @@ describe('DarkModeComponent', () => {
8585
});
8686

8787
it('should be true the isFeatureToggleDarkModeActive property when the user has the dark-mode feature toggle enabled', fakeAsync(() => {
88-
const filters : FeatureFilterModel[] = [];
88+
const filters: FeatureFilterModel[] = [];
8989
const featureToggle: FeatureToggleModel = {name: 'dark-mode', enabled: true, filters};
9090
spyOn(featureToggleGeneralService, 'getActivated').and.returnValue(of([featureToggle]).pipe(delay(1)));
9191
component.ngOnInit();

src/app/modules/shared/components/sidebar/sidebar.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ body {
6464
height: calc(100vh - 12vh);
6565
}
6666

67-
.dark-mode-toggle{
67+
.dark-mode-toggle {
6868
position: absolute;
6969
left: 50%;
7070
transform: translateX(-50%);

0 commit comments

Comments
 (0)