Adds tests for the user service. Refactors path location of the mocks

parent 8d72a615
import { Observable, of } from 'rxjs';
import { MessageProtocol, StatusProtocol } from '../../app/lib/enums/Message';
import { IMessage } from '../../app/lib/interfaces/communication/IMessage';
export class AuthorizeApiServiceMock {
public getAuthorizationForToken(token): Observable<IMessage> {
return token === 'no-token' ? of({
status: StatusProtocol.Failed,
step: MessageProtocol.Authenticate,
payload: {},
}) : of({
status: StatusProtocol.Success,
step: MessageProtocol.Authenticate,
payload: { casTicket: 'test-ticket' },
});
}
public postAuthorizationForStaticLogin(data): Observable<IMessage> {
return data.username ? of({
status: StatusProtocol.Success,
step: MessageProtocol.Authenticate,
payload: { token: 'test-token' },
}) : data.tokenHash ? of({
status: StatusProtocol.Success,
step: MessageProtocol.Authenticate,
payload: {
token: 'test-token',
username: 'test-token-user',
},
}) : of({
status: StatusProtocol.Failed,
step: MessageProtocol.Authenticate,
payload: {},
});
}
}
...@@ -5,7 +5,7 @@ import { RouterTestingModule } from '@angular/router/testing'; ...@@ -5,7 +5,7 @@ import { RouterTestingModule } from '@angular/router/testing';
import { JWT_OPTIONS, JwtModule } from '@auth0/angular-jwt'; import { JWT_OPTIONS, JwtModule } from '@auth0/angular-jwt';
import { TranslateService } from '@ngx-translate/core'; import { TranslateService } from '@ngx-translate/core';
import { RxStompService } from '@stomp/ng2-stompjs'; import { RxStompService } from '@stomp/ng2-stompjs';
import { TranslateServiceMock } from '../../../_mocks/TranslateServiceMock'; import { TranslateServiceMock } from '../../../_mocks/_services/TranslateServiceMock';
import { jwtOptionsFactory } from '../../lib/jwt.factory'; import { jwtOptionsFactory } from '../../lib/jwt.factory';
import { ConnectionMockService } from '../../service/connection/connection.mock.service'; import { ConnectionMockService } from '../../service/connection/connection.mock.service';
import { ConnectionService } from '../../service/connection/connection.service'; import { ConnectionService } from '../../service/connection/connection.service';
......
...@@ -7,8 +7,8 @@ import { TranslateService } from '@ngx-translate/core'; ...@@ -7,8 +7,8 @@ import { TranslateService } from '@ngx-translate/core';
import { RxStompService } from '@stomp/ng2-stompjs'; import { RxStompService } from '@stomp/ng2-stompjs';
import { Observable, of } from 'rxjs'; import { Observable, of } from 'rxjs';
import { QuizMock } from '../../../_mocks/_fixtures/quiz.mock'; import { QuizMock } from '../../../_mocks/_fixtures/quiz.mock';
import { QuizAdminFilterPipeMock } from '../../../_mocks/QuizAdminFilterPipeMock'; import { QuizAdminFilterPipeMock } from '../../../_mocks/_pipes/QuizAdminFilterPipeMock';
import { TranslateServiceMock } from '../../../_mocks/TranslateServiceMock'; import { TranslateServiceMock } from '../../../_mocks/_services/TranslateServiceMock';
import { QuizState } from '../../lib/enums/QuizState'; import { QuizState } from '../../lib/enums/QuizState';
import { jwtOptionsFactory } from '../../lib/jwt.factory'; import { jwtOptionsFactory } from '../../lib/jwt.factory';
import { AdminApiService } from '../../service/api/admin/admin-api.service'; import { AdminApiService } from '../../service/api/admin/admin-api.service';
......
...@@ -8,7 +8,7 @@ import { TranslateService } from '@ngx-translate/core'; ...@@ -8,7 +8,7 @@ import { TranslateService } from '@ngx-translate/core';
import { RxStompService } from '@stomp/ng2-stompjs'; import { RxStompService } from '@stomp/ng2-stompjs';
import { Observable, of } from 'rxjs'; import { Observable, of } from 'rxjs';
import { UserMock } from '../../../_mocks/_fixtures/user.mock'; import { UserMock } from '../../../_mocks/_fixtures/user.mock';
import { TranslateServiceMock } from '../../../_mocks/TranslateServiceMock'; import { TranslateServiceMock } from '../../../_mocks/_services/TranslateServiceMock';
import { jwtOptionsFactory } from '../../lib/jwt.factory'; import { jwtOptionsFactory } from '../../lib/jwt.factory';
import { AdminApiService } from '../../service/api/admin/admin-api.service'; import { AdminApiService } from '../../service/api/admin/admin-api.service';
import { ConnectionMockService } from '../../service/connection/connection.mock.service'; import { ConnectionMockService } from '../../service/connection/connection.mock.service';
......
...@@ -2,8 +2,8 @@ import { HttpClientTestingModule } from '@angular/common/http/testing'; ...@@ -2,8 +2,8 @@ import { HttpClientTestingModule } from '@angular/common/http/testing';
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing'; import { RouterTestingModule } from '@angular/router/testing';
import { TranslateService } from '@ngx-translate/core'; import { TranslateService } from '@ngx-translate/core';
import { TranslatePipeMock } from '../../../_mocks/TranslatePipeMock'; import { TranslatePipeMock } from '../../../_mocks/_pipes/TranslatePipeMock';
import { TranslateServiceMock } from '../../../_mocks/TranslateServiceMock'; import { TranslateServiceMock } from '../../../_mocks/_services/TranslateServiceMock';
import { QuizMockService } from '../../service/quiz/quiz-mock.service'; import { QuizMockService } from '../../service/quiz/quiz-mock.service';
import { QuizService } from '../../service/quiz/quiz.service'; import { QuizService } from '../../service/quiz/quiz.service';
import { TrackingMockService } from '../../service/tracking/tracking.mock.service'; import { TrackingMockService } from '../../service/tracking/tracking.mock.service';
......
...@@ -6,7 +6,7 @@ import { JWT_OPTIONS, JwtModule } from '@auth0/angular-jwt'; ...@@ -6,7 +6,7 @@ import { JWT_OPTIONS, JwtModule } from '@auth0/angular-jwt';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { TranslateService } from '@ngx-translate/core'; import { TranslateService } from '@ngx-translate/core';
import { RxStompService } from '@stomp/ng2-stompjs'; import { RxStompService } from '@stomp/ng2-stompjs';
import { TranslateServiceMock } from '../../../_mocks/TranslateServiceMock'; import { TranslateServiceMock } from '../../../_mocks/_services/TranslateServiceMock';
import { jwtOptionsFactory } from '../../lib/jwt.factory'; import { jwtOptionsFactory } from '../../lib/jwt.factory';
import { ConnectionMockService } from '../../service/connection/connection.mock.service'; import { ConnectionMockService } from '../../service/connection/connection.mock.service';
import { ConnectionService } from '../../service/connection/connection.service'; import { ConnectionService } from '../../service/connection/connection.service';
......
...@@ -6,8 +6,8 @@ import { SwUpdate } from '@angular/service-worker'; ...@@ -6,8 +6,8 @@ import { SwUpdate } from '@angular/service-worker';
import { NgbModal, NgbModalRef, NgbModule } from '@ng-bootstrap/ng-bootstrap'; import { NgbModal, NgbModalRef, NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { TranslateService } from '@ngx-translate/core'; import { TranslateService } from '@ngx-translate/core';
import { TOAST_CONFIG } from 'ngx-toastr'; import { TOAST_CONFIG } from 'ngx-toastr';
import { SwUpdateMock } from '../../../_mocks/SwUpdateMock'; import { SwUpdateMock } from '../../../_mocks/_services/SwUpdateMock';
import { TranslateServiceMock } from '../../../_mocks/TranslateServiceMock'; import { TranslateServiceMock } from '../../../_mocks/_services/TranslateServiceMock';
import { ConnectionMockService } from '../../service/connection/connection.mock.service'; import { ConnectionMockService } from '../../service/connection/connection.mock.service';
import { ConnectionService } from '../../service/connection/connection.service'; import { ConnectionService } from '../../service/connection/connection.service';
import { HeaderLabelService } from '../../service/header-label/header-label.service'; import { HeaderLabelService } from '../../service/header-label/header-label.service';
......
...@@ -7,7 +7,7 @@ import { NgbModalModule } from '@ng-bootstrap/ng-bootstrap'; ...@@ -7,7 +7,7 @@ import { NgbModalModule } from '@ng-bootstrap/ng-bootstrap';
import { TranslateService } from '@ngx-translate/core'; import { TranslateService } from '@ngx-translate/core';
import { RxStompService } from '@stomp/ng2-stompjs'; import { RxStompService } from '@stomp/ng2-stompjs';
import { InfiniteScrollModule } from 'ngx-infinite-scroll'; import { InfiniteScrollModule } from 'ngx-infinite-scroll';
import { TranslateServiceMock } from '../../../_mocks/TranslateServiceMock'; import { TranslateServiceMock } from '../../../_mocks/_services/TranslateServiceMock';
import { jwtOptionsFactory } from '../../lib/jwt.factory'; import { jwtOptionsFactory } from '../../lib/jwt.factory';
import { PipesModule } from '../../pipes/pipes.module'; import { PipesModule } from '../../pipes/pipes.module';
import { FooterBarService } from '../../service/footer-bar/footer-bar.service'; import { FooterBarService } from '../../service/footer-bar/footer-bar.service';
......
...@@ -4,11 +4,11 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; ...@@ -4,11 +4,11 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { JWT_OPTIONS, JwtModule } from '@auth0/angular-jwt'; import { JWT_OPTIONS, JwtModule } from '@auth0/angular-jwt';
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome'; import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
import { InfiniteScrollModule } from 'ngx-infinite-scroll'; import { InfiniteScrollModule } from 'ngx-infinite-scroll';
import { FilterKeysPipeMock } from '../../../_mocks/FilterKeysPipeMock'; import { FilterKeysPipeMock } from '../../../_mocks/_pipes/FilterKeysPipeMock';
import { JustafewPipeMock } from '../../../_mocks/JustafewPipeMock'; import { JustafewPipeMock } from '../../../_mocks/_pipes/JustafewPipeMock';
import { SearchFilterPipeMock } from '../../../_mocks/SearchFilterPipeMock'; import { SearchFilterPipeMock } from '../../../_mocks/_pipes/SearchFilterPipeMock';
import { SortPipeMock } from '../../../_mocks/SortPipeMock'; import { SortPipeMock } from '../../../_mocks/_pipes/SortPipeMock';
import { UnusedKeyFilterPipeMock } from '../../../_mocks/UnusedKeyFilterPipeMock'; import { UnusedKeyFilterPipeMock } from '../../../_mocks/_pipes/UnusedKeyFilterPipeMock';
import { jwtOptionsFactory } from '../../lib/jwt.factory'; import { jwtOptionsFactory } from '../../lib/jwt.factory';
import { CasLoginService } from '../../service/login/cas-login.service'; import { CasLoginService } from '../../service/login/cas-login.service';
import { StorageService } from '../../service/storage/storage.service'; import { StorageService } from '../../service/storage/storage.service';
......
...@@ -7,9 +7,9 @@ import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; ...@@ -7,9 +7,9 @@ import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { TranslateService } from '@ngx-translate/core'; import { TranslateService } from '@ngx-translate/core';
import { MarkdownService, MarkedOptions } from 'ngx-markdown'; import { MarkdownService, MarkedOptions } from 'ngx-markdown';
import { TOAST_CONFIG } from 'ngx-toastr'; import { TOAST_CONFIG } from 'ngx-toastr';
import { SwUpdateMock } from '../../../_mocks/SwUpdateMock'; import { TranslatePipeMock } from '../../../_mocks/_pipes/TranslatePipeMock';
import { TranslatePipeMock } from '../../../_mocks/TranslatePipeMock'; import { SwUpdateMock } from '../../../_mocks/_services/SwUpdateMock';
import { TranslateServiceMock } from '../../../_mocks/TranslateServiceMock'; import { TranslateServiceMock } from '../../../_mocks/_services/TranslateServiceMock';
import { DEVICE_TYPES, LIVE_PREVIEW_ENVIRONMENT } from '../../../environments/environment'; import { DEVICE_TYPES, LIVE_PREVIEW_ENVIRONMENT } from '../../../environments/environment';
import { HeaderModule } from '../../header/header.module'; import { HeaderModule } from '../../header/header.module';
import { ConnectionMockService } from '../../service/connection/connection.mock.service'; import { ConnectionMockService } from '../../service/connection/connection.mock.service';
......
...@@ -4,7 +4,7 @@ import { RouterTestingModule } from '@angular/router/testing'; ...@@ -4,7 +4,7 @@ import { RouterTestingModule } from '@angular/router/testing';
import { FaIconLibrary } from '@fortawesome/angular-fontawesome'; import { FaIconLibrary } from '@fortawesome/angular-fontawesome';
import { faBold, faCode, faGlobe, faHeading, faImage, faItalic, faListUl, faStrikethrough } from '@fortawesome/free-solid-svg-icons'; import { faBold, faCode, faGlobe, faHeading, faImage, faItalic, faListUl, faStrikethrough } from '@fortawesome/free-solid-svg-icons';
import { TranslateService } from '@ngx-translate/core'; import { TranslateService } from '@ngx-translate/core';
import { TranslateServiceMock } from '../../../_mocks/TranslateServiceMock'; import { TranslateServiceMock } from '../../../_mocks/_services/TranslateServiceMock';
import { TrackingMockService } from '../../service/tracking/tracking.mock.service'; import { TrackingMockService } from '../../service/tracking/tracking.mock.service';
import { TrackingService } from '../../service/tracking/tracking.service'; import { TrackingService } from '../../service/tracking/tracking.service';
import { SharedModule } from '../../shared/shared.module'; import { SharedModule } from '../../shared/shared.module';
......
...@@ -4,7 +4,7 @@ import { Router } from '@angular/router'; ...@@ -4,7 +4,7 @@ import { Router } from '@angular/router';
import { RouterTestingModule } from '@angular/router/testing'; import { RouterTestingModule } from '@angular/router/testing';
import { NgbActiveModal, NgbModule } from '@ng-bootstrap/ng-bootstrap'; import { NgbActiveModal, NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { TranslateService } from '@ngx-translate/core'; import { TranslateService } from '@ngx-translate/core';
import { TranslateServiceMock } from '../../../_mocks/TranslateServiceMock'; import { TranslateServiceMock } from '../../../_mocks/_services/TranslateServiceMock';
import { MemberApiService } from '../../service/api/member/member-api.service'; import { MemberApiService } from '../../service/api/member/member-api.service';
import { QuizApiService } from '../../service/api/quiz/quiz-api.service'; import { QuizApiService } from '../../service/api/quiz/quiz-api.service';
import { ConnectionMockService } from '../../service/connection/connection.mock.service'; import { ConnectionMockService } from '../../service/connection/connection.mock.service';
......
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { FormsModule } from '@angular/forms'; import { FormsModule } from '@angular/forms';
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
import { TranslatePipeMock } from '../../../_mocks/TranslatePipeMock'; import { TranslatePipeMock } from '../../../_mocks/_pipes/TranslatePipeMock';
import { QuizSaveComponent } from './quiz-save.component'; import { QuizSaveComponent } from './quiz-save.component';
......
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { TranslateService } from '@ngx-translate/core'; import { TranslateService } from '@ngx-translate/core';
import { TranslatePipeMock } from '../../../_mocks/TranslatePipeMock'; import { TranslatePipeMock } from '../../../_mocks/_pipes/TranslatePipeMock';
import { TranslateServiceMock } from '../../../_mocks/TranslateServiceMock'; import { TranslateServiceMock } from '../../../_mocks/_services/TranslateServiceMock';
import { HeaderLabelService } from '../../service/header-label/header-label.service'; import { HeaderLabelService } from '../../service/header-label/header-label.service';
import { ServerUnavailableModalComponent } from './server-unavailable-modal.component'; import { ServerUnavailableModalComponent } from './server-unavailable-modal.component';
......
import { TranslateServiceMock } from '../../../_mocks/TranslateServiceMock'; import { TranslateServiceMock } from '../../../_mocks/_services/TranslateServiceMock';
import { GenericFilterPipe } from './generic-filter.pipe'; import { GenericFilterPipe } from './generic-filter.pipe';
describe('GenericFilterPipe', () => { describe('GenericFilterPipe', () => {
......
...@@ -6,7 +6,7 @@ import { JWT_OPTIONS, JwtModule } from '@auth0/angular-jwt'; ...@@ -6,7 +6,7 @@ import { JWT_OPTIONS, JwtModule } from '@auth0/angular-jwt';
import { TranslateService } from '@ngx-translate/core'; import { TranslateService } from '@ngx-translate/core';
import { RxStompService } from '@stomp/ng2-stompjs'; import { RxStompService } from '@stomp/ng2-stompjs';
import { MarkdownService, MarkedOptions } from 'ngx-markdown'; import { MarkdownService, MarkedOptions } from 'ngx-markdown';
import { TranslateServiceMock } from '../../../_mocks/TranslateServiceMock'; import { TranslateServiceMock } from '../../../_mocks/_services/TranslateServiceMock';
import { jwtOptionsFactory } from '../../lib/jwt.factory'; import { jwtOptionsFactory } from '../../lib/jwt.factory';
import { QuizDuplicateComponent } from './quiz-duplicate.component'; import { QuizDuplicateComponent } from './quiz-duplicate.component';
......
...@@ -8,7 +8,7 @@ import { TranslateService } from '@ngx-translate/core'; ...@@ -8,7 +8,7 @@ import { TranslateService } from '@ngx-translate/core';
import { RxStompService } from '@stomp/ng2-stompjs'; import { RxStompService } from '@stomp/ng2-stompjs';
import { SimpleMQ } from 'ng2-simple-mq'; import { SimpleMQ } from 'ng2-simple-mq';
import { Subscription } from 'rxjs'; import { Subscription } from 'rxjs';
import { TranslateServiceMock } from '../../../../_mocks/TranslateServiceMock'; import { TranslateServiceMock } from '../../../../_mocks/_services/TranslateServiceMock';
import { jwtOptionsFactory } from '../../../lib/jwt.factory'; import { jwtOptionsFactory } from '../../../lib/jwt.factory';
import { ServerUnavailableModalComponent } from '../../../modals/server-unavailable-modal/server-unavailable-modal.component'; import { ServerUnavailableModalComponent } from '../../../modals/server-unavailable-modal/server-unavailable-modal.component';
import { MemberApiService } from '../../../service/api/member/member-api.service'; import { MemberApiService } from '../../../service/api/member/member-api.service';
......
...@@ -10,7 +10,7 @@ import { TranslateService } from '@ngx-translate/core'; ...@@ -10,7 +10,7 @@ import { TranslateService } from '@ngx-translate/core';
import { RxStompService } from '@stomp/ng2-stompjs'; import { RxStompService } from '@stomp/ng2-stompjs';
import { SimpleMQ } from 'ng2-simple-mq'; import { SimpleMQ } from 'ng2-simple-mq';
import { MarkdownService, MarkedOptions } from 'ngx-markdown'; import { MarkdownService, MarkedOptions } from 'ngx-markdown';
import { TranslateServiceMock } from '../../../../_mocks/TranslateServiceMock'; import { TranslateServiceMock } from '../../../../_mocks/_services/TranslateServiceMock';
import { Language } from '../../../lib/enums/enums'; import { Language } from '../../../lib/enums/enums';
import { jwtOptionsFactory } from '../../../lib/jwt.factory'; import { jwtOptionsFactory } from '../../../lib/jwt.factory';
import { ServerUnavailableModalComponent } from '../../../modals/server-unavailable-modal/server-unavailable-modal.component'; import { ServerUnavailableModalComponent } from '../../../modals/server-unavailable-modal/server-unavailable-modal.component';
......
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
import { TranslateService } from '@ngx-translate/core'; import { TranslateService } from '@ngx-translate/core';
import { TranslatePipeMock } from '../../../../../../_mocks/TranslatePipeMock'; import { TranslatePipeMock } from '../../../../../../_mocks/_pipes/TranslatePipeMock';
import { TranslateServiceMock } from '../../../../../../_mocks/TranslateServiceMock'; import { TranslateServiceMock } from '../../../../../../_mocks/_services/TranslateServiceMock';
import { EditModeConfirmComponent } from './edit-mode-confirm.component'; import { EditModeConfirmComponent } from './edit-mode-confirm.component';
......
...@@ -10,7 +10,7 @@ import { RxStompService } from '@stomp/ng2-stompjs'; ...@@ -10,7 +10,7 @@ import { RxStompService } from '@stomp/ng2-stompjs';
import { QRCodeModule } from 'angularx-qrcode'; import { QRCodeModule } from 'angularx-qrcode';
import { SimpleMQ } from 'ng2-simple-mq'; import { SimpleMQ } from 'ng2-simple-mq';
import { MarkdownService, MarkedOptions } from 'ngx-markdown'; import { MarkdownService, MarkedOptions } from 'ngx-markdown';
import { TranslateServiceMock } from '../../../../_mocks/TranslateServiceMock'; import { TranslateServiceMock } from '../../../../_mocks/_services/TranslateServiceMock';
import { ServerUnavailableModalComponent } from '../../../modals/server-unavailable-modal/server-unavailable-modal.component'; import { ServerUnavailableModalComponent } from '../../../modals/server-unavailable-modal/server-unavailable-modal.component';
import { MemberApiService } from '../../../service/api/member/member-api.service'; import { MemberApiService } from '../../../service/api/member/member-api.service';
import { QuizApiService } from '../../../service/api/quiz/quiz-api.service'; import { QuizApiService } from '../../../service/api/quiz/quiz-api.service';
......
...@@ -4,7 +4,7 @@ import { RouterTestingModule } from '@angular/router/testing'; ...@@ -4,7 +4,7 @@ import { RouterTestingModule } from '@angular/router/testing';
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
import { TranslateService } from '@ngx-translate/core'; import { TranslateService } from '@ngx-translate/core';
import { MarkdownService, MarkedOptions } from 'ngx-markdown'; import { MarkdownService, MarkedOptions } from 'ngx-markdown';
import { TranslateServiceMock } from '../../../../../_mocks/TranslateServiceMock'; import { TranslateServiceMock } from '../../../../../_mocks/_services/TranslateServiceMock';
import { AttendeeMockService } from '../../../../service/attendee/attendee.mock.service'; import { AttendeeMockService } from '../../../../service/attendee/attendee.mock.service';
import { AttendeeService } from '../../../../service/attendee/attendee.service'; import { AttendeeService } from '../../../../service/attendee/attendee.service';
import { ConnectionMockService } from '../../../../service/connection/connection.mock.service'; import { ConnectionMockService } from '../../../../service/connection/connection.mock.service';
......
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
import { TranslateService } from '@ngx-translate/core'; import { TranslateService } from '@ngx-translate/core';
import { TranslatePipeMock } from '../../../../../../_mocks/TranslatePipeMock'; import { TranslatePipeMock } from '../../../../../../_mocks/_pipes/TranslatePipeMock';
import { TranslateServiceMock } from '../../../../../../_mocks/TranslateServiceMock'; import { TranslateServiceMock } from '../../../../../../_mocks/_services/TranslateServiceMock';
import { ToLobbyConfirmComponent } from './to-lobby-confirm.component'; import { ToLobbyConfirmComponent } from './to-lobby-confirm.component';
......
...@@ -2,8 +2,8 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; ...@@ -2,8 +2,8 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { FaIconLibrary, FontAwesomeModule } from '@fortawesome/angular-fontawesome'; import { FaIconLibrary, FontAwesomeModule } from '@fortawesome/angular-fontawesome';
import { faSpinner } from '@fortawesome/free-solid-svg-icons'; import { faSpinner } from '@fortawesome/free-solid-svg-icons';
import { TranslateService } from '@ngx-translate/core'; import { TranslateService } from '@ngx-translate/core';
import { TranslatePipeMock } from '../../../../../../_mocks/TranslatePipeMock'; import { TranslatePipeMock } from '../../../../../../_mocks/_pipes/TranslatePipeMock';
import { TranslateServiceMock } from '../../../../../../_mocks/TranslateServiceMock'; import { TranslateServiceMock } from '../../../../../../_mocks/_services/TranslateServiceMock';
import { ProgressBarAnonymousComponent } from './progress-bar-anonymous.component'; import { ProgressBarAnonymousComponent } from './progress-bar-anonymous.component';
......
...@@ -4,8 +4,8 @@ import { DomSanitizer } from '@angular/platform-browser'; ...@@ -4,8 +4,8 @@ import { DomSanitizer } from '@angular/platform-browser';
import { FaIconLibrary, FontAwesomeModule } from '@fortawesome/angular-fontawesome'; import { FaIconLibrary, FontAwesomeModule } from '@fortawesome/angular-fontawesome';
import { faSpinner } from '@fortawesome/free-solid-svg-icons'; import { faSpinner } from '@fortawesome/free-solid-svg-icons';
import { TranslateService } from '@ngx-translate/core'; import { TranslateService } from '@ngx-translate/core';
import { TranslatePipeMock } from '../../../../../../_mocks/TranslatePipeMock'; import { TranslatePipeMock } from '../../../../../../_mocks/_pipes/TranslatePipeMock';
import { TranslateServiceMock } from '../../../../../../_mocks/TranslateServiceMock'; import { TranslateServiceMock } from '../../../../../../_mocks/_services/TranslateServiceMock';
import { ProgressBarFreetextComponent } from './progress-bar-freetext.component'; import { ProgressBarFreetextComponent } from './progress-bar-freetext.component';
......
...@@ -4,8 +4,8 @@ import { DomSanitizer } from '@angular/platform-browser'; ...@@ -4,8 +4,8 @@ import { DomSanitizer } from '@angular/platform-browser';
import { FaIconLibrary, FontAwesomeModule } from '@fortawesome/angular-fontawesome'; import { FaIconLibrary, FontAwesomeModule } from '@fortawesome/angular-fontawesome';
import { faSpinner } from '@fortawesome/free-solid-svg-icons'; import { faSpinner } from '@fortawesome/free-solid-svg-icons';
import { TranslateService } from '@ngx-translate/core'; import { TranslateService } from '@ngx-translate/core';
import { TranslatePipeMock } from '../../../../../../_mocks/TranslatePipeMock'; import { TranslatePipeMock } from '../../../../../../_mocks/_pipes/TranslatePipeMock';
import { TranslateServiceMock } from '../../../../../../_mocks/TranslateServiceMock'; import { TranslateServiceMock } from '../../../../../../_mocks/_services/TranslateServiceMock';
import { ProgressBarMultipleChoiceComponent } from './progress-bar-multiple-choice.component'; import { ProgressBarMultipleChoiceComponent } from './progress-bar-multiple-choice.component';
......
...@@ -4,8 +4,8 @@ import { DomSanitizer } from '@angular/platform-browser'; ...@@ -4,8 +4,8 @@ import { DomSanitizer } from '@angular/platform-browser';
import { FaIconLibrary, FontAwesomeModule } from '@fortawesome/angular-fontawesome'; import { FaIconLibrary, FontAwesomeModule } from '@fortawesome/angular-fontawesome';
import { faSpinner } from '@fortawesome/free-solid-svg-icons'; import { faSpinner } from '@fortawesome/free-solid-svg-icons';
import { TranslateService } from '@ngx-translate/core'; import { TranslateService } from '@ngx-translate/core';
import { TranslatePipeMock } from '../../../../../../_mocks/TranslatePipeMock'; import { TranslatePipeMock } from '../../../../../../_mocks/_pipes/TranslatePipeMock';
import { TranslateServiceMock } from '../../../../../../_mocks/TranslateServiceMock'; import { TranslateServiceMock } from '../../../../../../_mocks/_services/TranslateServiceMock';
import { ProgressBarRangedComponent } from './progress-bar-ranged.component'; import { ProgressBarRangedComponent } from './progress-bar-ranged.component';
......
...@@ -4,8 +4,8 @@ import { DomSanitizer } from '@angular/platform-browser'; ...@@ -4,8 +4,8 @@ import { DomSanitizer } from '@angular/platform-browser';
import { FaIconLibrary, FontAwesomeModule } from '@fortawesome/angular-fontawesome'; import { FaIconLibrary, FontAwesomeModule } from '@fortawesome/angular-fontawesome';
import { faSpinner } from '@fortawesome/free-solid-svg-icons'; import { faSpinner } from '@fortawesome/free-solid-svg-icons';
import { TranslateService } from '@ngx-translate/core'; import { TranslateService } from '@ngx-translate/core';
import { TranslatePipeMock } from '../../../../../../_mocks/TranslatePipeMock'; import { TranslatePipeMock } from '../../../../../../_mocks/_pipes/TranslatePipeMock';
import { TranslateServiceMock } from '../../../../../../_mocks/TranslateServiceMock'; import { TranslateServiceMock } from '../../../../../../_mocks/_services/TranslateServiceMock';
import { ProgressBarSingleChoiceComponent } from './progress-bar-single-choice.component'; import { ProgressBarSingleChoiceComponent } from './progress-bar-single-choice.component';
......
...@@ -4,8 +4,8 @@ import { DomSanitizer } from '@angular/platform-browser'; ...@@ -4,8 +4,8 @@ import { DomSanitizer } from '@angular/platform-browser';
import { FaIconLibrary, FontAwesomeModule } from '@fortawesome/angular-fontawesome'; import { FaIconLibrary, FontAwesomeModule } from '@fortawesome/angular-fontawesome';
import { faSpinner } from '@fortawesome/free-solid-svg-icons'; import { faSpinner } from '@fortawesome/free-solid-svg-icons';
import { TranslateService } from '@ngx-translate/core'; import { TranslateService } from '@ngx-translate/core';
import { TranslatePipeMock } from '../../../../../../_mocks/TranslatePipeMock'; import { TranslatePipeMock } from '../../../../../../_mocks/_pipes/TranslatePipeMock';
import { TranslateServiceMock } from '../../../../../../_mocks/TranslateServiceMock'; import { TranslateServiceMock } from '../../../../../../_mocks/_services/TranslateServiceMock';
import { ProgressBarSurveyComponent } from './progress-bar-survey.component'; import { ProgressBarSurveyComponent } from './progress-bar-survey.component';
......
...@@ -4,7 +4,7 @@ import { RouterTestingModule } from '@angular/router/testing'; ...@@ -4,7 +4,7 @@ import { RouterTestingModule } from '@angular/router/testing';
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
import { TranslateService } from '@ngx-translate/core'; import { TranslateService } from '@ngx-translate/core';
import { MarkdownService, MarkedOptions } from 'ngx-markdown'; import { MarkdownService, MarkedOptions } from 'ngx-markdown';
import { TranslateServiceMock } from '../../../../../_mocks/TranslateServiceMock'; import { TranslateServiceMock } from '../../../../../_mocks/_services/TranslateServiceMock';
import { Attendee } from '../../../../lib/attendee/attendee'; import { Attendee } from '../../../../lib/attendee/attendee';
import { AbstractChoiceQuestionEntity } from '../../../../lib/entities/question/AbstractChoiceQuestionEntity'; import { AbstractChoiceQuestionEntity } from '../../../../lib/entities/question/AbstractChoiceQuestionEntity';
import { AttendeeMockService } from '../../../../service/attendee/attendee.mock.service'; import { AttendeeMockService } from '../../../../service/attendee/attendee.mock.service';
......
...@@ -10,7 +10,7 @@ import { TranslateService } from '@ngx-translate/core'; ...@@ -10,7 +10,7 @@ import { TranslateService } from '@ngx-translate/core';
import { RxStompService } from '@stomp/ng2-stompjs'; import { RxStompService } from '@stomp/ng2-stompjs';
import { SimpleMQ } from 'ng2-simple-mq'; import { SimpleMQ } from 'ng2-simple-mq';
import { MarkdownService, MarkedOptions } from 'ngx-markdown'; import { MarkdownService, MarkedOptions } from 'ngx-markdown';
import { TranslateServiceMock } from '../../../../../_mocks/TranslateServiceMock'; import { TranslateServiceMock } from '../../../../../_mocks/_services/TranslateServiceMock';
import { jwtOptionsFactory } from '../../../../lib/jwt.factory'; import { jwtOptionsFactory } from '../../../../lib/jwt.factory';
import { ServerUnavailableModalComponent } from '../../../../modals/server-unavailable-modal/server-unavailable-modal.component'; import { ServerUnavailableModalComponent } from '../../../../modals/server-unavailable-modal/server-unavailable-modal.component';
import { AttendeeMockService } from '../../../../service/attendee/attendee.mock.service'; import { AttendeeMockService } from '../../../../service/attendee/attendee.mock.service';
......
...@@ -8,7 +8,7 @@ import { TranslateService } from '@ngx-translate/core'; ...@@ -8,7 +8,7 @@ import { TranslateService } from '@ngx-translate/core';
import { RxStompService } from '@stomp/ng2-stompjs'; import { RxStompService } from '@stomp/ng2-stompjs';
import { SimpleMQ } from 'ng2-simple-mq'; import { SimpleMQ } from 'ng2-simple-mq';
import { MarkdownService, MarkedOptions } from 'ngx-markdown'; import { MarkdownService, MarkedOptions } from 'ngx-markdown';
import { TranslateServiceMock } from '../../../../_mocks/TranslateServiceMock'; import { TranslateServiceMock } from '../../../../_mocks/_services/TranslateServiceMock';
import { Attendee } from '../../../lib/attendee/attendee'; import { Attendee } from '../../../lib/attendee/attendee';
import { SurveyQuestionEntity } from '../../../lib/entities/question/SurveyQuestionEntity'; import { SurveyQuestionEntity } from '../../../lib/entities/question/SurveyQuestionEntity';
import { Language } from '../../../lib/enums/enums'; import { Language } from '../../../lib/enums/enums';
......
...@@ -2,7 +2,7 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; ...@@ -2,7 +2,7 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing'; import { RouterTestingModule } from '@angular/router/testing';
import { TranslateService } from '@ngx-translate/core'; import { TranslateService } from '@ngx-translate/core';
import { MarkdownService, MarkedOptions } from 'ngx-markdown'; import { MarkdownService, MarkedOptions } from 'ngx-markdown';
import { TranslateServiceMock } from '../../../../../_mocks/TranslateServiceMock'; import { TranslateServiceMock } from '../../../../../_mocks/_services/TranslateServiceMock';
import { I18nService } from '../../../../service/i18n/i18n.service'; import { I18nService } from '../../../../service/i18n/i18n.service';
import { StorageService } from '../../../../service/storage/storage.service'; import { StorageService } from '../../../../service/storage/storage.service';
import { StorageServiceMock } from '../../../../service/storage/storage.service.mock'; import { StorageServiceMock } from '../../../../service/storage/storage.service.mock';
......
...@@ -10,7 +10,7 @@ import { TranslateService } from '@ngx-translate/core'; ...@@ -10,7 +10,7 @@ import { TranslateService } from '@ngx-translate/core';
import { RxStompService } from '@stomp/ng2-stompjs'; import { RxStompService } from '@stomp/ng2-stompjs';
import { SimpleMQ } from 'ng2-simple-mq'; import { SimpleMQ } from 'ng2-simple-mq';
import { MarkdownService, MarkedOptions } from 'ngx-markdown'; import { MarkdownService, MarkedOptions } from 'ngx-markdown';
import { TranslateServiceMock } from '../../../../_mocks/TranslateServiceMock'; import { TranslateServiceMock } from '../../../../_mocks/_services/TranslateServiceMock';
import { jwtOptionsFactory } from '../../../lib/jwt.factory'; import { jwtOptionsFactory } from '../../../lib/jwt.factory';
import { ServerUnavailableModalComponent } from '../../../modals/server-unavailable-modal/server-unavailable-modal.component'; import { ServerUnavailableModalComponent } from '../../../modals/server-unavailable-modal/server-unavailable-modal.component';
import { AttendeeMockService } from '../../../service/attendee/attendee.mock.service'; import { AttendeeMockService } from '../../../service/attendee/attendee.mock.service';
......
...@@ -11,8 +11,8 @@ import { TranslateService } from '@ngx-translate/core'; ...@@ -11,8 +11,8 @@ import { TranslateService } from '@ngx-translate/core';
import { RxStompService } from '@stomp/ng2-stompjs'; import { RxStompService } from '@stomp/ng2-stompjs';
import { SimpleMQ } from 'ng2-simple-mq'; import { SimpleMQ } from 'ng2-simple-mq';
import { MarkdownService, MarkedOptions } from 'ngx-markdown'; import { MarkdownService, MarkedOptions } from 'ngx-markdown';
import { TranslatePipeMock } from '../../../../_mocks/TranslatePipeMock'; import { TranslatePipeMock } from '../../../../_mocks/_pipes/TranslatePipeMock';
import { TranslateServiceMock } from '../../../../_mocks/TranslateServiceMock'; import { TranslateServiceMock } from '../../../../_mocks/_services/TranslateServiceMock';
import { jwtOptionsFactory } from '../../../lib/jwt.factory'; import { jwtOptionsFactory } from '../../../lib/jwt.factory';
import { ServerUnavailableModalComponent } from '../../../modals/server-unavailable-modal/server-unavailable-modal.component'; import { ServerUnavailableModalComponent } from '../../../modals/server-unavailable-modal/server-unavailable-modal.component';
import { MemberApiService } from '../../../service/api/member/member-api.service'; import { MemberApiService } from '../../../service/api/member/member-api.service';
......
...@@ -6,7 +6,7 @@ import { RouterTestingModule } from '@angular/router/testing'; ...@@ -6,7 +6,7 @@ import { RouterTestingModule } from '@angular/router/testing';
import { JWT_OPTIONS, JwtModule } from '@auth0/angular-jwt'; import { JWT_OPTIONS, JwtModule } from '@auth0/angular-jwt';
import { TranslateService } from '@ngx-translate/core'; import { TranslateService } from '@ngx-translate/core';
import { of } from 'rxjs'; import { of } from 'rxjs';
import { TranslateServiceMock } from '../../../_mocks/TranslateServiceMock'; import { TranslateServiceMock } from '../../../_mocks/_services/TranslateServiceMock';
import { MessageProtocol, StatusProtocol } from '../../lib/enums/Message'; import { MessageProtocol, StatusProtocol } from '../../lib/enums/Message';
import { jwtOptionsFactory } from '../../lib/jwt.factory'; import { jwtOptionsFactory } from '../../lib/jwt.factory';
import { QuizApiService } from '../../service/api/quiz/quiz-api.service'; import { QuizApiService } from '../../service/api/quiz/quiz-api.service';
......
...@@ -10,9 +10,9 @@ import { AngularSvgIconModule } from 'angular-svg-icon'; ...@@ -10,9 +10,9 @@ import { AngularSvgIconModule } from 'angular-svg-icon';
import { MarkdownService, MarkedOptions } from 'ngx-markdown'; import { MarkdownService, MarkedOptions } from 'ngx-markdown';
import { TOAST_CONFIG } from 'ngx-toastr'; import { TOAST_CONFIG } from 'ngx-toastr';
import { of } from 'rxjs'; import { of } from 'rxjs';
import { SwUpdateMock } from '../../../../../../_mocks/SwUpdateMock'; import { TranslatePipeMock } from '../../../../../../_mocks/_pipes/TranslatePipeMock';
import { TranslatePipeMock } from '../../../../../../_mocks/TranslatePipeMock'; import { SwUpdateMock } from '../../../../../../_mocks/_services/SwUpdateMock';
import { TranslateServiceMock } from '../../../../../../_mocks/TranslateServiceMock'; import { TranslateServiceMock } from '../../../../../../_mocks/_services/TranslateServiceMock';
import { HeaderComponent } from '../../../../../header/header/header.component'; import { HeaderComponent } from '../../../../../header/header/header.component';
import { SurveyQuestionEntity } from '../../../../../lib/entities/question/SurveyQuestionEntity'; import { SurveyQuestionEntity } from '../../../../../lib/entities/question/SurveyQuestionEntity';
import { LivePreviewComponent } from '../../../../../live-preview/live-preview/live-preview.component'; import { LivePreviewComponent } from '../../../../../live-preview/live-preview/live-preview.component';
......
...@@ -4,8 +4,8 @@ import { ActivatedRoute } from '@angular/router'; ...@@ -4,8 +4,8 @@ import { ActivatedRoute } from '@angular/router';
import { RouterTestingModule } from '@angular/router/testing'; import { RouterTestingModule } from '@angular/router/testing';
import { TranslateService } from '@ngx-translate/core';