|
1 | 1 | import { TranslateDirective } from 'app/shared/language/translate.directive';
|
2 |
| -import { MockTranslateService, TranslatePipeMock } from '../../helpers/mocks/service/mock-translate.service'; |
3 |
| -import { ProfileService } from 'app/shared/layouts/profiles/profile.service'; |
| 2 | +import { MockTranslateService, TranslatePipeMock } from 'test/helpers/mocks/service/mock-translate.service'; |
| 3 | +import { ProfileService } from 'app/core/layouts/profiles/shared/profile.service'; |
4 | 4 | import { ComponentFixture, TestBed, fakeAsync, tick } from '@angular/core/testing';
|
5 | 5 | import { ActivatedRoute, Router } from '@angular/router';
|
6 | 6 | import { StaticContentService } from 'app/shared/service/static-content.service';
|
7 | 7 | import { MockDirective, MockModule, MockProvider } from 'ng-mocks';
|
8 | 8 | import { SharingComponent } from 'app/sharing/sharing.component';
|
9 |
| -import { MockRouter } from '../../helpers/mocks/mock-router'; |
| 9 | +import { MockRouter } from 'test/helpers/mocks/mock-router'; |
10 | 10 | import { ReactiveFormsModule } from '@angular/forms';
|
11 | 11 | import { TranslateService } from '@ngx-translate/core';
|
12 | 12 | import { SessionStorageService } from 'ngx-webstorage';
|
13 |
| -import { MockSyncStorage } from '../../helpers/mocks/service/mock-sync-storage.service'; |
| 13 | +import { MockSyncStorage } from 'test/helpers/mocks/service/mock-sync-storage.service'; |
14 | 14 | import { provideHttpClient } from '@angular/common/http';
|
15 | 15 | import { HttpTestingController, provideHttpClientTesting } from '@angular/common/http/testing';
|
16 | 16 | import { of } from 'rxjs';
|
17 | 17 | import { AccountService } from 'app/core/auth/account.service';
|
18 |
| -import { Course } from 'app/entities/course.model'; |
| 18 | +import { Course } from 'app/core/course/shared/entities/course.model'; |
19 | 19 | import { AlertService } from 'app/shared/service/alert.service';
|
20 |
| -import { MockAlertService } from '../../helpers/mocks/service/mock-alert.service'; |
| 20 | +import { MockAlertService } from 'test/helpers/mocks/service/mock-alert.service'; |
21 | 21 | import { SharingInfo, ShoppingBasket } from 'app/sharing/sharing.model';
|
22 |
| -import { MockAccountService } from '../../helpers/mocks/service/mock-account.service'; |
| 22 | +import { MockAccountService } from 'test/helpers/mocks/service/mock-account.service'; |
23 | 23 |
|
24 | 24 | describe('SharingComponent', () => {
|
25 | 25 | let fixture: ComponentFixture<SharingComponent>;
|
@@ -65,7 +65,7 @@ describe('SharingComponent', () => {
|
65 | 65 | jest.restoreAllMocks();
|
66 | 66 | });
|
67 | 67 |
|
68 |
| - const testBasket: ShoppingBasket = { exerciseInfo: [], userInfo: {}, tokenValidUntil: new Date(Date.now() + 60 * 60 * 1000) }; |
| 68 | + const testBasket: ShoppingBasket = { exerciseInfo: [], userInfo: { email: '[email protected]' }, tokenValidUntil: new Date(Date.now() + 60 * 60 * 1000) }; |
69 | 69 |
|
70 | 70 | const courses: Course[] = [
|
71 | 71 | { id: 1, title: 'testCouse 1' },
|
|
0 commit comments