diff --git a/src/app/layout/component/settings-feature-container/settings-feature-container.component.spec.ts b/src/app/layout/component/settings-feature-container/settings-feature-container.component.spec.ts deleted file mode 100644 index 4df42bea..00000000 --- a/src/app/layout/component/settings-feature-container/settings-feature-container.component.spec.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { SettingsFeatureContainerComponent } from './settings-feature-container.component'; - -describe('SettingsFeatureContainerComponent', () => { - let component: SettingsFeatureContainerComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [SettingsFeatureContainerComponent] - }).compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(SettingsFeatureContainerComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/layout/component/settings-form/settings-form.component.spec.ts b/src/app/layout/component/settings-form/settings-form.component.spec.ts deleted file mode 100644 index 113f8cdc..00000000 --- a/src/app/layout/component/settings-form/settings-form.component.spec.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { HttpClientModule } from '@angular/common/http'; -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { BrowserModule } from '@angular/platform-browser'; -import { TranslateFakeLoader, TranslateLoader, TranslateModule } from '@ngx-translate/core'; -import { SettingsFormComponent } from './settings-form.component'; - - -describe('SettingsFormComponent', () => { - let component: SettingsFormComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [ - CommonModule, - HttpClientModule, - BrowserModule, - TranslateModule.forRoot({ - loader: { - provide: TranslateLoader, - useFactory: () => new TranslateFakeLoader() - } - }) - ], - declarations: [SettingsFormComponent] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(SettingsFormComponent); - component = fixture.componentInstance; - component.settings = {}; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/layout/component/settings-support/settings-support.component.spec.ts b/src/app/layout/component/settings-support/settings-support.component.spec.ts deleted file mode 100644 index 976a2bca..00000000 --- a/src/app/layout/component/settings-support/settings-support.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { SettingsSupportComponent } from './settings-support.component'; - - -describe('SettingsSupportComponent', () => { - let component: SettingsSupportComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [SettingsSupportComponent] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(SettingsSupportComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/evaluate/component/evaluate-item-frame/evaluate-item-frame.component.spec.ts b/src/app/modules/evaluate/component/evaluate-item-frame/evaluate-item-frame.component.spec.ts deleted file mode 100644 index 2c079925..00000000 --- a/src/app/modules/evaluate/component/evaluate-item-frame/evaluate-item-frame.component.spec.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { EvaluateItemFrameComponent } from './evaluate-item-frame.component'; - - -describe('EvaluateItemFrameComponent', () => { - let component: EvaluateItemFrameComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [EvaluateItemFrameComponent] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(EvaluateItemFrameComponent); - component = fixture.componentInstance; - component.item = {}; - component.settings = {} as any; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/evaluate/component/evaluate-item-options/evaluate-item-options.component.spec.ts b/src/app/modules/evaluate/component/evaluate-item-options/evaluate-item-options.component.spec.ts deleted file mode 100644 index 86a4eb5a..00000000 --- a/src/app/modules/evaluate/component/evaluate-item-options/evaluate-item-options.component.spec.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { HttpClientModule } from '@angular/common/http'; -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { BrowserModule } from '@angular/platform-browser'; -import { EvaluateItemOptionsComponent } from './evaluate-item-options.component'; - - -describe('EvaluateItemOptionsComponent', () => { - let component: EvaluateItemOptionsComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [EvaluateItemOptionsComponent], - imports: [ - CommonModule, - HttpClientModule, - BrowserModule - ], - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(EvaluateItemOptionsComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/evaluate/component/evaluate-item-price-prediction/evaluate-item-price-prediction.component.spec.ts b/src/app/modules/evaluate/component/evaluate-item-price-prediction/evaluate-item-price-prediction.component.spec.ts deleted file mode 100644 index d5fcb7ce..00000000 --- a/src/app/modules/evaluate/component/evaluate-item-price-prediction/evaluate-item-price-prediction.component.spec.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { HttpClientModule } from '@angular/common/http'; -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { BrowserModule } from '@angular/platform-browser'; -import { Subject } from 'rxjs'; -import { EvaluateItemPricePredictionComponent } from './evaluate-item-price-prediction.component'; - - -describe('EvaluateItemPricePredictionComponent', () => { - let component: EvaluateItemPricePredictionComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [EvaluateItemPricePredictionComponent], - imports: [ - CommonModule, - HttpClientModule, - BrowserModule - ], - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(EvaluateItemPricePredictionComponent); - component = fixture.componentInstance; - component.optionsChange = new Subject(); - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/evaluate/component/evaluate-item-price-rate-factors/evaluate-item-price-rate-factors.component.spec.ts b/src/app/modules/evaluate/component/evaluate-item-price-rate-factors/evaluate-item-price-rate-factors.component.spec.ts deleted file mode 100644 index 1a24e63d..00000000 --- a/src/app/modules/evaluate/component/evaluate-item-price-rate-factors/evaluate-item-price-rate-factors.component.spec.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { TranslateFakeLoader, TranslateLoader, TranslateModule } from '@ngx-translate/core'; -import { EvaluateItemPriceRateFactorsComponent } from './evaluate-item-price-rate-factors.component'; - - -describe('EvaluateItemPriceRateFactorsComponent', () => { - let component: EvaluateItemPriceRateFactorsComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [EvaluateItemPriceRateFactorsComponent], - imports: [ - TranslateModule.forRoot({ - loader: { - provide: TranslateLoader, - useFactory: () => new TranslateFakeLoader() - } - }) - ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(EvaluateItemPriceRateFactorsComponent); - component = fixture.componentInstance; - component.rate = { - - }; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/evaluate/component/evaluate-item-price-rate-graph/evaluate-item-price-rate-graph.component.spec.ts b/src/app/modules/evaluate/component/evaluate-item-price-rate-graph/evaluate-item-price-rate-graph.component.spec.ts deleted file mode 100644 index 467a9bd8..00000000 --- a/src/app/modules/evaluate/component/evaluate-item-price-rate-graph/evaluate-item-price-rate-graph.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { EvaluateItemPriceRateGraphComponent } from './evaluate-item-price-rate-graph.component'; - - -describe('EvaluateItemPriceRateGraphComponent', () => { - let component: EvaluateItemPriceRateGraphComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [EvaluateItemPriceRateGraphComponent] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(EvaluateItemPriceRateGraphComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/evaluate/component/evaluate-item-price-rate-values/evaluate-item-price-rate-values.component.spec.ts b/src/app/modules/evaluate/component/evaluate-item-price-rate-values/evaluate-item-price-rate-values.component.spec.ts deleted file mode 100644 index 861c3401..00000000 --- a/src/app/modules/evaluate/component/evaluate-item-price-rate-values/evaluate-item-price-rate-values.component.spec.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { TranslateFakeLoader, TranslateLoader, TranslateModule } from '@ngx-translate/core'; -import { EvaluateItemPriceRateValuesComponent } from './evaluate-item-price-rate-values.component'; - - -describe('EvaluateItemPriceRateValuesComponent', () => { - let component: EvaluateItemPriceRateValuesComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [EvaluateItemPriceRateValuesComponent], - imports: [ - TranslateModule.forRoot({ - loader: { - provide: TranslateLoader, - useFactory: () => new TranslateFakeLoader() - } - }) - ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(EvaluateItemPriceRateValuesComponent); - component = fixture.componentInstance; - component.rate = {}; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/evaluate/component/evaluate-item-price-rate/evaluate-item-price-rate.component.spec.ts b/src/app/modules/evaluate/component/evaluate-item-price-rate/evaluate-item-price-rate.component.spec.ts deleted file mode 100644 index 5c62c1a6..00000000 --- a/src/app/modules/evaluate/component/evaluate-item-price-rate/evaluate-item-price-rate.component.spec.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { HttpClientModule } from '@angular/common/http'; -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { BrowserModule } from '@angular/platform-browser'; -import { Language } from '@data/poe/schema'; -import { ContextService } from '@shared/module/poe/context'; -import { Subject } from 'rxjs'; -import { EvaluateItemPriceRateComponent } from './evaluate-item-price-rate.component'; - - -describe('EvaluateItemPriceRateComponent', () => { - let component: EvaluateItemPriceRateComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [EvaluateItemPriceRateComponent], - imports: [ - CommonModule, - HttpClientModule, - BrowserModule - ], - }).compileComponents(); - - const context = TestBed.inject(ContextService); - context.update({ - language: Language.English, - leagueId: 'Standard' - }); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(EvaluateItemPriceRateComponent); - component = fixture.componentInstance; - component.optionsChange = new Subject(); - component.currencies = []; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/evaluate/component/evaluate-item-price/evaluate-item-price.component.spec.ts b/src/app/modules/evaluate/component/evaluate-item-price/evaluate-item-price.component.spec.ts deleted file mode 100644 index 44adacfc..00000000 --- a/src/app/modules/evaluate/component/evaluate-item-price/evaluate-item-price.component.spec.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { EvaluateItemPriceComponent } from './evaluate-item-price.component'; - - -describe('EvaluateItemPriceComponent', () => { - let component: EvaluateItemPriceComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [EvaluateItemPriceComponent] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(EvaluateItemPriceComponent); - component = fixture.componentInstance; - component.item = {}; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/evaluate/component/evaluate-item-search-graph/evaluate-item-search-graph.component.spec.ts b/src/app/modules/evaluate/component/evaluate-item-search-graph/evaluate-item-search-graph.component.spec.ts deleted file mode 100644 index 59ce4896..00000000 --- a/src/app/modules/evaluate/component/evaluate-item-search-graph/evaluate-item-search-graph.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { EvaluateItemSearchGraphComponent } from './evaluate-item-search-graph.component'; - - -describe('EvaluateItemSearchGraphComponent', () => { - let component: EvaluateItemSearchGraphComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [EvaluateItemSearchGraphComponent] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(EvaluateItemSearchGraphComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/evaluate/component/evaluate-item-search-header/evaluate-item-search-header.component.spec.ts b/src/app/modules/evaluate/component/evaluate-item-search-header/evaluate-item-search-header.component.spec.ts deleted file mode 100644 index c8c3c298..00000000 --- a/src/app/modules/evaluate/component/evaluate-item-search-header/evaluate-item-search-header.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { EvaluateItemSearchHeaderComponent } from './evaluate-item-search-header.component'; - - -describe('EvaluateItemSearchHeaderComponent', () => { - let component: EvaluateItemSearchHeaderComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [EvaluateItemSearchHeaderComponent] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(EvaluateItemSearchHeaderComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/evaluate/component/evaluate-item-search-table/evaluate-item-search-table.component.spec.ts b/src/app/modules/evaluate/component/evaluate-item-search-table/evaluate-item-search-table.component.spec.ts deleted file mode 100644 index 3afca065..00000000 --- a/src/app/modules/evaluate/component/evaluate-item-search-table/evaluate-item-search-table.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { EvaluateItemSearchTableComponent } from './evaluate-item-search-table.component'; - - -describe('EvaluateItemSearchTableComponent', () => { - let component: EvaluateItemSearchTableComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [EvaluateItemSearchTableComponent] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(EvaluateItemSearchTableComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/evaluate/component/evaluate-item-search-values/evaluate-item-search-values.component.spec.ts b/src/app/modules/evaluate/component/evaluate-item-search-values/evaluate-item-search-values.component.spec.ts deleted file mode 100644 index e7f4dc04..00000000 --- a/src/app/modules/evaluate/component/evaluate-item-search-values/evaluate-item-search-values.component.spec.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { TranslateFakeLoader, TranslateLoader, TranslateModule } from '@ngx-translate/core'; -import { EvaluateItemSearchValuesComponent } from './evaluate-item-search-values.component'; - - -describe('EvaluateItemSearchValuesComponent', () => { - let component: EvaluateItemSearchValuesComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [EvaluateItemSearchValuesComponent], - imports: [ - TranslateModule.forRoot({ - loader: { - provide: TranslateLoader, - useFactory: () => new TranslateFakeLoader() - } - }) - ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(EvaluateItemSearchValuesComponent); - component = fixture.componentInstance; - component.values = {}; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/evaluate/component/evaluate-item-search/evaluate-item-search.component.spec.ts b/src/app/modules/evaluate/component/evaluate-item-search/evaluate-item-search.component.spec.ts deleted file mode 100644 index 40bf000e..00000000 --- a/src/app/modules/evaluate/component/evaluate-item-search/evaluate-item-search.component.spec.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { HttpClientModule } from '@angular/common/http'; -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { BrowserModule } from '@angular/platform-browser'; -import { TranslateFakeLoader, TranslateLoader, TranslateModule } from '@ngx-translate/core'; -import { Subject } from 'rxjs'; -import { EvaluateItemSearchComponent } from './evaluate-item-search.component'; - - -describe('EvaluateItemSearchComponent', () => { - let component: EvaluateItemSearchComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [EvaluateItemSearchComponent], - imports: [ - CommonModule, - HttpClientModule, - BrowserModule, - TranslateModule.forRoot({ - loader: { - provide: TranslateLoader, - useFactory: () => new TranslateFakeLoader() - } - }) - ], - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(EvaluateItemSearchComponent); - component = fixture.componentInstance; - component.settings = {} as any; - component.queryItemChange = new Subject(); - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/inspect/component/inspect-item/inspect-item.component.spec.ts b/src/app/modules/inspect/component/inspect-item/inspect-item.component.spec.ts deleted file mode 100644 index e53df7f9..00000000 --- a/src/app/modules/inspect/component/inspect-item/inspect-item.component.spec.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { HttpClientModule } from '@angular/common/http'; -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { BrowserModule } from '@angular/platform-browser'; -import { AssetService } from '@app/assets'; -import { InspectItemComponent } from './inspect-item.component'; - - -describe('InspectItemComponent', () => { - let component: InspectItemComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(async () => { - TestBed.configureTestingModule({ - imports: [ - CommonModule, - HttpClientModule, - BrowserModule - ], - declarations: [InspectItemComponent] - }) - .compileComponents(); - const asset = TestBed.inject(AssetService); - await asset.load().toPromise(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(InspectItemComponent); - component = fixture.componentInstance; - component.item = { - typeId: undefined, - nameId: undefined - }; - component.settings = {} as any; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/inspect/component/inspect-links/inspect-links.component.spec.ts b/src/app/modules/inspect/component/inspect-links/inspect-links.component.spec.ts deleted file mode 100644 index 6b99e9fe..00000000 --- a/src/app/modules/inspect/component/inspect-links/inspect-links.component.spec.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { HttpClientModule } from '@angular/common/http'; -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { BrowserModule } from '@angular/platform-browser'; -import { TranslateFakeLoader, TranslateLoader, TranslateModule } from '@ngx-translate/core'; -import { InspectLinksComponent } from './inspect-links.component'; - - -describe('InspectLinksComponent', () => { - let component: InspectLinksComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [ - CommonModule, - HttpClientModule, - BrowserModule, - TranslateModule.forRoot({ - loader: { - provide: TranslateLoader, - useFactory: () => new TranslateFakeLoader() - } - }) - ], - declarations: [InspectLinksComponent] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(InspectLinksComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/inspect/component/inspect-map/inspect-map.component.spec.ts b/src/app/modules/inspect/component/inspect-map/inspect-map.component.spec.ts deleted file mode 100644 index 37a0fb8a..00000000 --- a/src/app/modules/inspect/component/inspect-map/inspect-map.component.spec.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { HttpClientModule } from '@angular/common/http'; -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { BrowserModule } from '@angular/platform-browser'; -import { AssetService } from '@app/assets'; -import { TranslateFakeLoader, TranslateLoader, TranslateModule } from '@ngx-translate/core'; -import { InspectMapComponent } from './inspect-map.component'; - - -describe('InspectMapComponent', () => { - let component: InspectMapComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(async () => { - TestBed.configureTestingModule({ - imports: [ - CommonModule, - HttpClientModule, - BrowserModule, - TranslateModule.forRoot({ - loader: { - provide: TranslateLoader, - useFactory: () => new TranslateFakeLoader() - } - }) - ], - declarations: [InspectMapComponent] - }) - .compileComponents(); - const asset = TestBed.inject(AssetService); - await asset.load().toPromise(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(InspectMapComponent); - component = fixture.componentInstance; - component.item = { - stats: [] - }; - component.settings = {} as any; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/market/component/market-exchange-bar/market-exchange-bar.component.spec.ts b/src/app/modules/market/component/market-exchange-bar/market-exchange-bar.component.spec.ts deleted file mode 100644 index fd6a513a..00000000 --- a/src/app/modules/market/component/market-exchange-bar/market-exchange-bar.component.spec.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { TranslateFakeLoader, TranslateLoader, TranslateModule } from '@ngx-translate/core'; -import { MarketExchangeBarComponent } from './market-exchange-bar.component'; - - -describe('MarketExchangeBarComponent', () => { - let component: MarketExchangeBarComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [MarketExchangeBarComponent], - imports: [ - TranslateModule.forRoot({ - loader: { - provide: TranslateLoader, - useFactory: () => new TranslateFakeLoader() - } - }) - ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(MarketExchangeBarComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/market/component/market-exchange-filter-item/market-exchange-filter-item.component.spec.ts b/src/app/modules/market/component/market-exchange-filter-item/market-exchange-filter-item.component.spec.ts deleted file mode 100644 index 975ed6c7..00000000 --- a/src/app/modules/market/component/market-exchange-filter-item/market-exchange-filter-item.component.spec.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { HttpClientModule } from '@angular/common/http'; -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { BrowserModule } from '@angular/platform-browser'; -import { MarketExchangeFilterItemComponent } from './market-exchange-filter-item.component'; - - -describe('MarketExchangeFilterItemComponent', () => { - let component: MarketExchangeFilterItemComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [ - CommonModule, - HttpClientModule, - BrowserModule - ], - declarations: [MarketExchangeFilterItemComponent] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(MarketExchangeFilterItemComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/market/component/market-exchange-filter/market-exchange-filter.component.spec.ts b/src/app/modules/market/component/market-exchange-filter/market-exchange-filter.component.spec.ts deleted file mode 100644 index 7677e39a..00000000 --- a/src/app/modules/market/component/market-exchange-filter/market-exchange-filter.component.spec.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { HttpClientModule } from '@angular/common/http'; -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { BrowserModule } from '@angular/platform-browser'; -import { TranslateFakeLoader, TranslateLoader, TranslateModule } from '@ngx-translate/core'; -import { MarketExchangeFilterComponent } from './market-exchange-filter.component'; - - -describe('MarketExchangeFilterComponent', () => { - let component: MarketExchangeFilterComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [MarketExchangeFilterComponent], - imports: [ - CommonModule, - HttpClientModule, - BrowserModule, - TranslateModule.forRoot({ - loader: { - provide: TranslateLoader, - useFactory: () => new TranslateFakeLoader() - } - }) - ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(MarketExchangeFilterComponent); - component = fixture.componentInstance; - component.request = { - exchange: { - have: [], - want: [] - } - }; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/market/component/market-exchange-price/market-exchange-price.component.spec.ts b/src/app/modules/market/component/market-exchange-price/market-exchange-price.component.spec.ts deleted file mode 100644 index b038e588..00000000 --- a/src/app/modules/market/component/market-exchange-price/market-exchange-price.component.spec.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { MarketExchangePriceComponent } from './market-exchange-price.component'; - - -describe('MarketExchangePriceComponent', () => { - let component: MarketExchangePriceComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [MarketExchangePriceComponent] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(MarketExchangePriceComponent); - component = fixture.componentInstance; - component.price = { - item: { - stock: 1, - amount: 1, - currency: '' - }, - exchange: { - amount: 1, - currency: '' - }, - amount: 1 - }; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/market/component/market-exchange/market-exchange.component.spec.ts b/src/app/modules/market/component/market-exchange/market-exchange.component.spec.ts deleted file mode 100644 index 9b7ed50e..00000000 --- a/src/app/modules/market/component/market-exchange/market-exchange.component.spec.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { HttpClientModule } from '@angular/common/http'; -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { BrowserModule } from '@angular/platform-browser'; -import { MarketExchangeComponent } from './market-exchange.component'; - - -describe('MarketExchangeComponent', () => { - let component: MarketExchangeComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [ - CommonModule, - HttpClientModule, - BrowserModule - ], - declarations: [MarketExchangeComponent] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(MarketExchangeComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/market/component/market-frame/market-frame.component.spec.ts b/src/app/modules/market/component/market-frame/market-frame.component.spec.ts deleted file mode 100644 index b87a5ad5..00000000 --- a/src/app/modules/market/component/market-frame/market-frame.component.spec.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { HttpClientModule } from '@angular/common/http'; -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { BrowserModule } from '@angular/platform-browser'; -import { Language } from '@data/poe/schema'; -import { ContextService } from '@shared/module/poe/context'; -import { MarketFrameComponent } from './market-frame.component'; - - -describe('MarketFrameComponent', () => { - let component: MarketFrameComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [ - CommonModule, - HttpClientModule, - BrowserModule - ], - declarations: [MarketFrameComponent] - }) - .compileComponents(); - - const context = TestBed.inject(ContextService); - context.update({ - language: Language.English, - leagueId: 'Standard' - }); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(MarketFrameComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/market/component/market-infinite-scroll/market-infinite-scroll.component.spec.ts b/src/app/modules/market/component/market-infinite-scroll/market-infinite-scroll.component.spec.ts deleted file mode 100644 index 355c2e5a..00000000 --- a/src/app/modules/market/component/market-infinite-scroll/market-infinite-scroll.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { MarketInfiniteScrollComponent } from './market-infinite-scroll.component'; - - -describe('MarketInfiniteScrollComponent', () => { - let component: MarketInfiniteScrollComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [MarketInfiniteScrollComponent] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(MarketInfiniteScrollComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/market/component/market-input-boolean/market-input-boolean.component.spec.ts b/src/app/modules/market/component/market-input-boolean/market-input-boolean.component.spec.ts deleted file mode 100644 index bedacfe7..00000000 --- a/src/app/modules/market/component/market-input-boolean/market-input-boolean.component.spec.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { MarketInputBooleanComponent } from './market-input-boolean.component'; - - -describe('MarketBooleanInputComponent', () => { - let component: MarketInputBooleanComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [MarketInputBooleanComponent] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(MarketInputBooleanComponent); - component = fixture.componentInstance; - component.request = { - query: { - - }, - sort: { - - } - }; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/market/component/market-input-number/market-input-number.component.spec.ts b/src/app/modules/market/component/market-input-number/market-input-number.component.spec.ts deleted file mode 100644 index 1a369d4c..00000000 --- a/src/app/modules/market/component/market-input-number/market-input-number.component.spec.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { MarketInputNumberComponent } from './market-input-number.component'; - - -describe('MarketInputNumberComponent', () => { - let component: MarketInputNumberComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [MarketInputNumberComponent] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(MarketInputNumberComponent); - component = fixture.componentInstance; - component.request = { - query: { - - }, - sort: { - - } - }; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/market/component/market-input-range/market-input-range.component.spec.ts b/src/app/modules/market/component/market-input-range/market-input-range.component.spec.ts deleted file mode 100644 index 8c54ccfb..00000000 --- a/src/app/modules/market/component/market-input-range/market-input-range.component.spec.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { MarketInputRangeComponent } from './market-input-range.component'; - - -describe('MarketInputRangeComponent', () => { - let component: MarketInputRangeComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [MarketInputRangeComponent] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(MarketInputRangeComponent); - component = fixture.componentInstance; - component.request = { - query: { - - }, - sort: { - - } - }; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/market/component/market-input-select-option/market-input-select-option.component.spec.ts b/src/app/modules/market/component/market-input-select-option/market-input-select-option.component.spec.ts deleted file mode 100644 index 9a90d7f4..00000000 --- a/src/app/modules/market/component/market-input-select-option/market-input-select-option.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { MarketInputSelectOptionComponent } from './market-input-select-option.component'; - - -describe('MarketInputSelectOptionComponent', () => { - let component: MarketInputSelectOptionComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [MarketInputSelectOptionComponent] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(MarketInputSelectOptionComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/market/component/market-input-select/market-input-select.component.spec.ts b/src/app/modules/market/component/market-input-select/market-input-select.component.spec.ts deleted file mode 100644 index 74eb9a6e..00000000 --- a/src/app/modules/market/component/market-input-select/market-input-select.component.spec.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { MarketInputSelectComponent } from './market-input-select.component'; - - -describe('MarketInputSelectComponent', () => { - let component: MarketInputSelectComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [MarketInputSelectComponent] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(MarketInputSelectComponent); - component = fixture.componentInstance; - component.request = { - query: { - - }, - sort: { - - } - }; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/market/component/market-input/market-input.component.spec.ts b/src/app/modules/market/component/market-input/market-input.component.spec.ts deleted file mode 100644 index e89b5dd6..00000000 --- a/src/app/modules/market/component/market-input/market-input.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { MarketInputComponent } from './market-input.component'; - - -describe('MarketInputComponent', () => { - let component: MarketInputComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [MarketInputComponent] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(MarketInputComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/market/component/market-item-search-bar/market-item-search-bar.component.spec.ts b/src/app/modules/market/component/market-item-search-bar/market-item-search-bar.component.spec.ts deleted file mode 100644 index dc363b12..00000000 --- a/src/app/modules/market/component/market-item-search-bar/market-item-search-bar.component.spec.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { HttpClientModule } from '@angular/common/http'; -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { BrowserModule } from '@angular/platform-browser'; -import { TranslateFakeLoader, TranslateLoader, TranslateModule } from '@ngx-translate/core'; -import { MarketItemSearchBarComponent } from './market-item-search-bar.component'; - - -describe('MarketItemSearchBarComponent', () => { - let component: MarketItemSearchBarComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [MarketItemSearchBarComponent], - imports: [ - CommonModule, - HttpClientModule, - BrowserModule, - TranslateModule.forRoot({ - loader: { - provide: TranslateLoader, - useFactory: () => new TranslateFakeLoader() - } - }) - ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(MarketItemSearchBarComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/market/component/market-item-search-filter-heist/market-item-search-filter-heist.component.spec.ts b/src/app/modules/market/component/market-item-search-filter-heist/market-item-search-filter-heist.component.spec.ts deleted file mode 100644 index edef70c6..00000000 --- a/src/app/modules/market/component/market-item-search-filter-heist/market-item-search-filter-heist.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { ComponentFixture, TestBed } from '@angular/core/testing'; - -import { MarketItemSearchFilterHeistComponent } from './market-item-search-filter-heist.component'; - -describe('MarketItemSearchFilterHeistComponent', () => { - let component: MarketItemSearchFilterHeistComponent; - let fixture: ComponentFixture; - - beforeEach(async () => { - await TestBed.configureTestingModule({ - declarations: [ MarketItemSearchFilterHeistComponent ] - }) - .compileComponents(); - }); - - beforeEach(() => { - fixture = TestBed.createComponent(MarketItemSearchFilterHeistComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/market/component/market-item-search-filter-misc/market-item-search-filter-misc.component.spec.ts b/src/app/modules/market/component/market-item-search-filter-misc/market-item-search-filter-misc.component.spec.ts deleted file mode 100644 index a39d70d6..00000000 --- a/src/app/modules/market/component/market-item-search-filter-misc/market-item-search-filter-misc.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { MarketItemSearchFilterMiscComponent } from './market-item-search-filter-misc.component'; - - -describe('MarketItemSearchFilterMiscComponent', () => { - let component: MarketItemSearchFilterMiscComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [MarketItemSearchFilterMiscComponent] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(MarketItemSearchFilterMiscComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/market/component/market-item-search-filter-trade/market-item-search-filter-trade.component.spec.ts b/src/app/modules/market/component/market-item-search-filter-trade/market-item-search-filter-trade.component.spec.ts deleted file mode 100644 index 31cbbb38..00000000 --- a/src/app/modules/market/component/market-item-search-filter-trade/market-item-search-filter-trade.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { MarketItemSearchFilterTradeComponent } from './market-item-search-filter-trade.component'; - - -describe('MarketItemSearchFilterTradeComponent', () => { - let component: MarketItemSearchFilterTradeComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [MarketItemSearchFilterTradeComponent] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(MarketItemSearchFilterTradeComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/market/component/market-item-search-filter-type/market-item-search-filter-type.component.spec.ts b/src/app/modules/market/component/market-item-search-filter-type/market-item-search-filter-type.component.spec.ts deleted file mode 100644 index 6b3ae35d..00000000 --- a/src/app/modules/market/component/market-item-search-filter-type/market-item-search-filter-type.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { MarketItemSearchFilterTypeComponent } from './market-item-search-filter-type.component'; - - -describe('MarketItemSearchFilterTypeComponent', () => { - let component: MarketItemSearchFilterTypeComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [MarketItemSearchFilterTypeComponent] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(MarketItemSearchFilterTypeComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/market/component/market-item-search-filter/market-item-search-filter.component.spec.ts b/src/app/modules/market/component/market-item-search-filter/market-item-search-filter.component.spec.ts deleted file mode 100644 index 02ac4e34..00000000 --- a/src/app/modules/market/component/market-item-search-filter/market-item-search-filter.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { MarketItemSearchFilterComponent } from './market-item-search-filter.component'; - - -describe('MarketItemSearchFilterComponent', () => { - let component: MarketItemSearchFilterComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [MarketItemSearchFilterComponent] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(MarketItemSearchFilterComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/market/component/market-item-search-result/market-item-search-result.component.spec.ts b/src/app/modules/market/component/market-item-search-result/market-item-search-result.component.spec.ts deleted file mode 100644 index a5c60aea..00000000 --- a/src/app/modules/market/component/market-item-search-result/market-item-search-result.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { async, ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; - -import { MarketItemSearchResultComponent } from './market-item-search-result.component'; - -describe('MarketItemSearchResultComponent', () => { - let component: MarketItemSearchResultComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [ MarketItemSearchResultComponent ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(MarketItemSearchResultComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/market/component/market-item-search-stat-group/market-item-search-stat-group.component.spec.ts b/src/app/modules/market/component/market-item-search-stat-group/market-item-search-stat-group.component.spec.ts deleted file mode 100644 index 5f87f3e2..00000000 --- a/src/app/modules/market/component/market-item-search-stat-group/market-item-search-stat-group.component.spec.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { MarketItemSearchStatGroupComponent } from './market-item-search-stat-group.component'; - - -describe('MarketItemSearchStatGroupComponent', () => { - let component: MarketItemSearchStatGroupComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [MarketItemSearchStatGroupComponent] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(MarketItemSearchStatGroupComponent); - component = fixture.componentInstance; - component.request = { - query: { - - }, - sort: { - - } - }; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/market/component/market-item-search-stat/market-item-search-stat.component.spec.ts b/src/app/modules/market/component/market-item-search-stat/market-item-search-stat.component.spec.ts deleted file mode 100644 index 278a29b6..00000000 --- a/src/app/modules/market/component/market-item-search-stat/market-item-search-stat.component.spec.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { HttpClientModule } from '@angular/common/http'; -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { BrowserModule } from '@angular/platform-browser'; -import { TradeStatsTypePipe } from '@shared/module/poe/trade'; -import { MarketItemSearchStatComponent } from './market-item-search-stat.component'; - - -describe('MarketItemSearchStatComponent', () => { - let component: MarketItemSearchStatComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [MarketItemSearchStatComponent, TradeStatsTypePipe], - imports: [ - CommonModule, - HttpClientModule, - BrowserModule - ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(MarketItemSearchStatComponent); - component = fixture.componentInstance; - component.stat = { - id: '', - text: '', - type: '' - }; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/market/component/market-item-search-stats/market-item-search-stats.component.spec.ts b/src/app/modules/market/component/market-item-search-stats/market-item-search-stats.component.spec.ts deleted file mode 100644 index a9c5deaa..00000000 --- a/src/app/modules/market/component/market-item-search-stats/market-item-search-stats.component.spec.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { HttpClientModule } from '@angular/common/http'; -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { BrowserModule } from '@angular/platform-browser'; -import { MarketItemSearchStatsComponent } from './market-item-search-stats.component'; - - -describe('MarketItemSearchStatsComponent', () => { - let component: MarketItemSearchStatsComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [MarketItemSearchStatsComponent], - imports: [ - CommonModule, - HttpClientModule, - BrowserModule - ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(MarketItemSearchStatsComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/market/component/market-item-search/market-item-search.component.spec.ts b/src/app/modules/market/component/market-item-search/market-item-search.component.spec.ts deleted file mode 100644 index b6d32bad..00000000 --- a/src/app/modules/market/component/market-item-search/market-item-search.component.spec.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { HttpClientModule } from '@angular/common/http'; -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { BrowserModule } from '@angular/platform-browser'; -import { Language } from '@data/poe/schema'; -import { TranslateFakeLoader, TranslateLoader, TranslateModule } from '@ngx-translate/core'; -import { ContextService } from '@shared/module/poe/context'; -import { MarketItemSearchComponent } from './market-item-search.component'; - - -describe('MarketItemSearchComponent', () => { - let component: MarketItemSearchComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [MarketItemSearchComponent], - imports: [ - CommonModule, - HttpClientModule, - BrowserModule, - TranslateModule.forRoot({ - loader: { - provide: TranslateLoader, - useFactory: () => new TranslateFakeLoader() - } - }) - ] - }) - .compileComponents(); - - const context = TestBed.inject(ContextService); - context.update({ - language: Language.English, - leagueId: 'Standard' - }); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(MarketItemSearchComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/market/component/market-listing-status/market-listing-status.component.spec.ts b/src/app/modules/market/component/market-listing-status/market-listing-status.component.spec.ts deleted file mode 100644 index b82cab55..00000000 --- a/src/app/modules/market/component/market-listing-status/market-listing-status.component.spec.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { TranslateFakeLoader, TranslateLoader, TranslateModule } from '@ngx-translate/core'; -import { CommonModule } from '@shared/module/common/common.module'; -import { MarketListingStatusComponent } from './market-listing-status.component'; - - -describe('MarketListingStatusComponent', () => { - let component: MarketListingStatusComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [MarketListingStatusComponent], - imports: [ - TranslateModule.forRoot({ - loader: { - provide: TranslateLoader, - useFactory: () => new TranslateFakeLoader() - } - }), - CommonModule - ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(MarketListingStatusComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/market/component/market-panel-group/market-panel-group.component.spec.ts b/src/app/modules/market/component/market-panel-group/market-panel-group.component.spec.ts deleted file mode 100644 index 7c3d789a..00000000 --- a/src/app/modules/market/component/market-panel-group/market-panel-group.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { MarketPanelGroupComponent } from './market-panel-group.component'; - - -describe('MarketPanelGroupComponent', () => { - let component: MarketPanelGroupComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [MarketPanelGroupComponent] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(MarketPanelGroupComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/market/component/market-panel/market-panel.component.spec.ts b/src/app/modules/market/component/market-panel/market-panel.component.spec.ts deleted file mode 100644 index d07d3d21..00000000 --- a/src/app/modules/market/component/market-panel/market-panel.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { MarketPanelComponent } from './market-panel.component'; - - -describe('MarketPanelComponent', () => { - let component: MarketPanelComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [MarketPanelComponent] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(MarketPanelComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/market/component/market-tab-group/market-tab-group.component.spec.ts b/src/app/modules/market/component/market-tab-group/market-tab-group.component.spec.ts deleted file mode 100644 index b4d4c630..00000000 --- a/src/app/modules/market/component/market-tab-group/market-tab-group.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { MarketTabGroupComponent } from './market-tab-group.component'; - - -describe('MarketTabGroupComponent', () => { - let component: MarketTabGroupComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [MarketTabGroupComponent] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(MarketTabGroupComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/market/component/market-tab/market-tab.component.spec.ts b/src/app/modules/market/component/market-tab/market-tab.component.spec.ts deleted file mode 100644 index 8a2dadb3..00000000 --- a/src/app/modules/market/component/market-tab/market-tab.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { MarketTabComponent } from './market-tab.component'; - - -describe('MarketTabComponent', () => { - let component: MarketTabComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [MarketTabComponent] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(MarketTabComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/trade/component/trade-message-action/trade-message-action.component.spec.ts b/src/app/modules/trade/component/trade-message-action/trade-message-action.component.spec.ts deleted file mode 100644 index 7fa3ee73..00000000 --- a/src/app/modules/trade/component/trade-message-action/trade-message-action.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { TradeMessageActionComponent } from './trade-message-action.component'; - - -describe('TradeMessageActionComponent', () => { - let component: TradeMessageActionComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [TradeMessageActionComponent] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(TradeMessageActionComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/trade/component/trade-message-bulk/trade-message-bulk.component.spec.ts b/src/app/modules/trade/component/trade-message-bulk/trade-message-bulk.component.spec.ts deleted file mode 100644 index 6172c209..00000000 --- a/src/app/modules/trade/component/trade-message-bulk/trade-message-bulk.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { TradeMessageBulkComponent } from './trade-message-bulk.component'; - - -describe('TradeMessageBulkComponent', () => { - let component: TradeMessageBulkComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [TradeMessageBulkComponent] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(TradeMessageBulkComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/trade/component/trade-message-direction/trade-message-direction.component.spec.ts b/src/app/modules/trade/component/trade-message-direction/trade-message-direction.component.spec.ts deleted file mode 100644 index f11440b5..00000000 --- a/src/app/modules/trade/component/trade-message-direction/trade-message-direction.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { TradeMessageDirectionComponent } from './trade-message-direction.component'; - - -describe('TradeMessageDirectionComponent', () => { - let component: TradeMessageDirectionComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [TradeMessageDirectionComponent] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(TradeMessageDirectionComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/trade/component/trade-message-item/trade-message-item.component.spec.ts b/src/app/modules/trade/component/trade-message-item/trade-message-item.component.spec.ts deleted file mode 100644 index c7360adb..00000000 --- a/src/app/modules/trade/component/trade-message-item/trade-message-item.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { TradeMessageItemComponent } from './trade-message-item.component'; - - -describe('TradeMessageItemComponent', () => { - let component: TradeMessageItemComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [TradeMessageItemComponent] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(TradeMessageItemComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/trade/component/trade-message-map-tier/trade-message-map-tier.component.spec.ts b/src/app/modules/trade/component/trade-message-map-tier/trade-message-map-tier.component.spec.ts deleted file mode 100644 index e95be020..00000000 --- a/src/app/modules/trade/component/trade-message-map-tier/trade-message-map-tier.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { TradeMessageMapTierComponent } from './trade-message-map-tier.component'; - - -describe('TradeMessageMapTierComponent', () => { - let component: TradeMessageMapTierComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [TradeMessageMapTierComponent] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(TradeMessageMapTierComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/trade/component/trade-message-map/trade-message-map.component.spec.ts b/src/app/modules/trade/component/trade-message-map/trade-message-map.component.spec.ts deleted file mode 100644 index d73f49a8..00000000 --- a/src/app/modules/trade/component/trade-message-map/trade-message-map.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { TradeMessageMapComponent } from './trade-message-map.component'; - - -describe('TradeMessageMapComponent', () => { - let component: TradeMessageMapComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [TradeMessageMapComponent] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(TradeMessageMapComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/modules/trade/component/trade-message/trade-message.component.spec.ts b/src/app/modules/trade/component/trade-message/trade-message.component.spec.ts deleted file mode 100644 index 3e9dfeb0..00000000 --- a/src/app/modules/trade/component/trade-message/trade-message.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { TradeMessageComponent } from './trade-message.component'; - - -describe('TradeMessageComponent', () => { - let component: TradeMessageComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [TradeMessageComponent] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(TradeMessageComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/shared/module/material/component/card/card.component.spec.ts b/src/app/shared/module/material/component/card/card.component.spec.ts deleted file mode 100644 index e5c4a589..00000000 --- a/src/app/shared/module/material/component/card/card.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { CardComponent } from './card.component'; - - -describe('CardComponent', () => { - let component: CardComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [CardComponent] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(CardComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/shared/module/material/component/select-list/select-list.component.spec.ts b/src/app/shared/module/material/component/select-list/select-list.component.spec.ts deleted file mode 100644 index 7afc5f33..00000000 --- a/src/app/shared/module/material/component/select-list/select-list.component.spec.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; -import { TranslateFakeLoader, TranslateLoader, TranslateModule } from '@ngx-translate/core'; -import { MaterialModule } from '../../material.module'; -import { SelectListComponent } from './select-list.component'; - - -describe('SelectListComponent', () => { - let component: SelectListComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [ - MaterialModule, - BrowserAnimationsModule, - TranslateModule.forRoot({ - loader: { - provide: TranslateLoader, - useFactory: () => new TranslateFakeLoader() - } - }) - ], - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(SelectListComponent); - component = fixture.componentInstance; - component.items = []; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/shared/module/poe/common/background/background.component.spec.ts b/src/app/shared/module/poe/common/background/background.component.spec.ts deleted file mode 100644 index 71d2ba38..00000000 --- a/src/app/shared/module/poe/common/background/background.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { BackgroundComponent } from './background.component'; - - -describe('BackgroundComponent', () => { - let component: BackgroundComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [BackgroundComponent] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(BackgroundComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/shared/module/poe/currency/frame/currency-frame/currency-frame.component.spec.ts b/src/app/shared/module/poe/currency/frame/currency-frame/currency-frame.component.spec.ts deleted file mode 100644 index acb09a40..00000000 --- a/src/app/shared/module/poe/currency/frame/currency-frame/currency-frame.component.spec.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { HttpClientModule } from '@angular/common/http'; -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { BrowserModule } from '@angular/platform-browser'; -import { CurrencyFrameComponent } from './currency-frame.component'; - - -describe('CurrencyFrameComponent', () => { - let component: CurrencyFrameComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [CurrencyFrameComponent], - imports: [ - CommonModule, - HttpClientModule, - BrowserModule - ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(CurrencyFrameComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/shared/module/poe/item/frame/item-frame-header/item-frame-header.component.spec.ts b/src/app/shared/module/poe/item/frame/item-frame-header/item-frame-header.component.spec.ts deleted file mode 100644 index a2f49477..00000000 --- a/src/app/shared/module/poe/item/frame/item-frame-header/item-frame-header.component.spec.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { HttpClientModule } from '@angular/common/http'; -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { BrowserModule } from '@angular/platform-browser'; -import { Language } from '@data/poe/schema'; -import { ItemFrameHeaderComponent } from './item-frame-header.component'; - - -describe('ItemFrameHeaderComponent', () => { - let component: ItemFrameHeaderComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [ - CommonModule, - HttpClientModule, - BrowserModule - ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(ItemFrameHeaderComponent); - component = fixture.componentInstance; - component.item = { - influences: {}, - damage: {}, - stats: [], - properties: {}, - requirements: {}, - sockets: [] - }; - component.queryItem = component.item; - component.language = Language.English; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/shared/module/poe/item/frame/item-frame-influences/item-frame-influences.component.spec.ts b/src/app/shared/module/poe/item/frame/item-frame-influences/item-frame-influences.component.spec.ts deleted file mode 100644 index c1b4d34e..00000000 --- a/src/app/shared/module/poe/item/frame/item-frame-influences/item-frame-influences.component.spec.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { HttpClientModule } from '@angular/common/http'; -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { BrowserModule } from '@angular/platform-browser'; -import { Language } from '@data/poe/schema'; -import { ItemFrameInfluencesComponent } from './item-frame-influences.component'; - - -describe('ItemFrameInfluencesComponent', () => { - let component: ItemFrameInfluencesComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [ - CommonModule, - HttpClientModule, - BrowserModule - ] - }).compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(ItemFrameInfluencesComponent); - component = fixture.componentInstance; - component.item = { - influences: {}, - damage: {}, - stats: [], - properties: {}, - requirements: {}, - sockets: [] - }; - component.queryItem = component.item; - component.language = Language.English; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/shared/module/poe/item/frame/item-frame-level-requirements/item-frame-level-requirements.component.spec.ts b/src/app/shared/module/poe/item/frame/item-frame-level-requirements/item-frame-level-requirements.component.spec.ts deleted file mode 100644 index d7377413..00000000 --- a/src/app/shared/module/poe/item/frame/item-frame-level-requirements/item-frame-level-requirements.component.spec.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { HttpClientModule } from '@angular/common/http'; -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { BrowserModule } from '@angular/platform-browser'; -import { Language } from '@data/poe/schema'; -import { ItemFrameLevelRequirementsComponent } from './item-frame-level-requirements.component'; - - -describe('ItemFrameLevelRequirementsComponent', () => { - let component: ItemFrameLevelRequirementsComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [ - CommonModule, - HttpClientModule, - BrowserModule - ] - }).compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(ItemFrameLevelRequirementsComponent); - component = fixture.componentInstance; - component.item = { - influences: {}, - damage: {}, - stats: [], - properties: {}, - requirements: {}, - sockets: [] - }; - component.queryItem = component.item; - component.language = Language.English; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/shared/module/poe/item/frame/item-frame-properties/item-frame-properties.component.spec.ts b/src/app/shared/module/poe/item/frame/item-frame-properties/item-frame-properties.component.spec.ts deleted file mode 100644 index d75a002c..00000000 --- a/src/app/shared/module/poe/item/frame/item-frame-properties/item-frame-properties.component.spec.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { HttpClientModule } from '@angular/common/http'; -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { BrowserModule } from '@angular/platform-browser'; -import { Language } from '@data/poe/schema'; -import { ItemCategory } from '../../base-item-type'; -import { ItemFramePropertiesComponent } from './item-frame-properties.component'; - -describe('ItemFramePropertiesComponent', () => { - let component: ItemFramePropertiesComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [ - CommonModule, - HttpClientModule, - BrowserModule - ] - }).compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(ItemFramePropertiesComponent); - component = fixture.componentInstance; - component.item = { - influences: {}, - damage: {}, - stats: [], - properties: {}, - requirements: {}, - sockets: [], - category: ItemCategory.Gem - }; - component.queryItem = component.item; - component.language = Language.English; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/shared/module/poe/item/frame/item-frame-query/item-frame-query.component.spec.ts b/src/app/shared/module/poe/item/frame/item-frame-query/item-frame-query.component.spec.ts deleted file mode 100644 index 60601689..00000000 --- a/src/app/shared/module/poe/item/frame/item-frame-query/item-frame-query.component.spec.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { HttpClientModule } from '@angular/common/http'; -import { EventEmitter } from '@angular/core'; -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { BrowserModule } from '@angular/platform-browser'; -import { ItemFrameComponent } from '../item-frame/item-frame.component'; -import { ItemFrameQueryComponent } from './item-frame-query.component'; - - -describe('ItemFrameQueryComponent', () => { - let component: ItemFrameQueryComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [ - CommonModule, - HttpClientModule, - BrowserModule - ], - declarations: [ItemFrameQueryComponent], - providers: [ - { - provide: ItemFrameComponent, useValue: { - queryItemChange: new EventEmitter(), - onPropertyChange: () => { }, - } - } - ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(ItemFrameQueryComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/shared/module/poe/item/frame/item-frame-separator/item-frame-separator.component.spec.ts b/src/app/shared/module/poe/item/frame/item-frame-separator/item-frame-separator.component.spec.ts deleted file mode 100644 index 83f73afd..00000000 --- a/src/app/shared/module/poe/item/frame/item-frame-separator/item-frame-separator.component.spec.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { HttpClientModule } from '@angular/common/http'; -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { BrowserModule } from '@angular/platform-browser'; -import { ItemFrameSeparatorComponent } from './item-frame-separator.component'; - - -describe('ItemFrameSeparatorComponent', () => { - let component: ItemFrameSeparatorComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [ - CommonModule, - HttpClientModule, - BrowserModule - ], - }).compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(ItemFrameSeparatorComponent); - component = fixture.componentInstance; - component.item = { - influences: {}, - damage: {}, - stats: [], - properties: {}, - requirements: {}, - sockets: [] - }; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/shared/module/poe/item/frame/item-frame-sockets/item-frame-sockets.component.spec.ts b/src/app/shared/module/poe/item/frame/item-frame-sockets/item-frame-sockets.component.spec.ts deleted file mode 100644 index 2322048e..00000000 --- a/src/app/shared/module/poe/item/frame/item-frame-sockets/item-frame-sockets.component.spec.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { HttpClientModule } from '@angular/common/http'; -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { BrowserModule } from '@angular/platform-browser'; -import { ItemFrameComponent } from '../item-frame/item-frame.component'; -import { ItemFrameSocketsComponent } from './item-frame-sockets.component'; - - -describe('ItemFrameSocketsComponent', () => { - let component: ItemFrameSocketsComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [ - CommonModule, - HttpClientModule, - BrowserModule - ], - providers: [ - { - provide: ItemFrameComponent, useValue: { - onPropertyChange: () => { }, - } - } - ] - }).compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(ItemFrameSocketsComponent); - component = fixture.componentInstance; - component.item = { - influences: {}, - damage: {}, - stats: [], - properties: {}, - requirements: {}, - sockets: [] - }; - component.queryItem = component.item; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/shared/module/poe/item/frame/item-frame-state/item-frame-state.component.spec.ts b/src/app/shared/module/poe/item/frame/item-frame-state/item-frame-state.component.spec.ts deleted file mode 100644 index 463aca52..00000000 --- a/src/app/shared/module/poe/item/frame/item-frame-state/item-frame-state.component.spec.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { HttpClientModule } from '@angular/common/http'; -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { BrowserModule } from '@angular/platform-browser'; -import { Language } from '@data/poe/schema'; -import { ItemFrameStateComponent } from './item-frame-state.component'; - - -describe('ItemFrameStateComponent', () => { - let component: ItemFrameStateComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [ - CommonModule, - HttpClientModule, - BrowserModule - ] - }).compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(ItemFrameStateComponent); - component = fixture.componentInstance; - component.item = { - influences: {}, - damage: {}, - stats: [], - properties: {}, - requirements: {}, - sockets: [] - }; - component.queryItem = component.item; - component.language = Language.English; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/shared/module/poe/item/frame/item-frame-stats/item-frame-stats.component.spec.ts b/src/app/shared/module/poe/item/frame/item-frame-stats/item-frame-stats.component.spec.ts deleted file mode 100644 index 2198448f..00000000 --- a/src/app/shared/module/poe/item/frame/item-frame-stats/item-frame-stats.component.spec.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { HttpClientModule } from '@angular/common/http'; -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { BrowserModule } from '@angular/platform-browser'; -import { Language } from '@data/poe/schema'; -import { StatGroupPipe, StatTransformPipe } from '../../stat'; -import { ItemFrameStatsComponent } from './item-frame-stats.component'; - - -describe('ItemFrameStatsComponent', () => { - let component: ItemFrameStatsComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [ - CommonModule, - HttpClientModule, - BrowserModule - ], - declarations: [ - ItemFrameStatsComponent, - StatGroupPipe, - StatTransformPipe - ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(ItemFrameStatsComponent); - component = fixture.componentInstance; - component.item = { - influences: {}, - damage: {}, - stats: [], - properties: {}, - requirements: {}, - sockets: [] - }; - component.queryItem = component.item; - component.language = Language.English; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/shared/module/poe/item/frame/item-frame-value-group/item-frame-value-group.component.spec.ts b/src/app/shared/module/poe/item/frame/item-frame-value-group/item-frame-value-group.component.spec.ts deleted file mode 100644 index badd1114..00000000 --- a/src/app/shared/module/poe/item/frame/item-frame-value-group/item-frame-value-group.component.spec.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { HttpClientModule } from '@angular/common/http'; -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { BrowserModule } from '@angular/platform-browser'; -import { ItemFrameValueGroupComponent } from './item-frame-value-group.component'; - - -describe('ItemFrameValueGroupComponent', () => { - let component: ItemFrameValueGroupComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [ - CommonModule, - HttpClientModule, - BrowserModule - ], - declarations: [ItemFrameValueGroupComponent] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(ItemFrameValueGroupComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/shared/module/poe/item/frame/item-frame-value-input/item-frame-value-input.component.spec.ts b/src/app/shared/module/poe/item/frame/item-frame-value-input/item-frame-value-input.component.spec.ts deleted file mode 100644 index 4e7b8f9f..00000000 --- a/src/app/shared/module/poe/item/frame/item-frame-value-input/item-frame-value-input.component.spec.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { HttpClientModule } from '@angular/common/http'; -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { BrowserModule } from '@angular/platform-browser'; -import { ItemFrameValueInputComponent } from './item-frame-value-input.component'; - - -describe('ItemFrameValueInputComponent', () => { - let component: ItemFrameValueInputComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [ - CommonModule, - HttpClientModule, - BrowserModule - ], - declarations: [ItemFrameValueInputComponent] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(ItemFrameValueInputComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/shared/module/poe/item/frame/item-frame-value/item-frame-value.component.spec.ts b/src/app/shared/module/poe/item/frame/item-frame-value/item-frame-value.component.spec.ts deleted file mode 100644 index 8b54a2e6..00000000 --- a/src/app/shared/module/poe/item/frame/item-frame-value/item-frame-value.component.spec.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { HttpClientModule } from '@angular/common/http'; -import { EventEmitter } from '@angular/core'; -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { BrowserModule } from '@angular/platform-browser'; -import { ItemFrameQueryComponent } from '../item-frame-query/item-frame-query.component'; -import { ItemFrameComponent } from '../item-frame/item-frame.component'; -import { ItemFrameValueComponent } from './item-frame-value.component'; - - -describe('ItemFrameValueComponent', () => { - let component: ItemFrameValueComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [ - CommonModule, - HttpClientModule, - BrowserModule - ], - declarations: [ItemFrameValueComponent], - providers: [ - { - provide: ItemFrameComponent, useValue: { - queryItemChange: new EventEmitter() - } - }, - { - provide: ItemFrameQueryComponent, useValue: { - checkChange: () => null - } - } - ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(ItemFrameValueComponent); - component = fixture.componentInstance; - component.value = { - text: '0', - value: 0 - }; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/shared/module/poe/item/frame/item-frame/item-frame.component.spec.ts b/src/app/shared/module/poe/item/frame/item-frame/item-frame.component.spec.ts deleted file mode 100644 index 73283413..00000000 --- a/src/app/shared/module/poe/item/frame/item-frame/item-frame.component.spec.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { HttpClientModule } from '@angular/common/http'; -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { BrowserModule } from '@angular/platform-browser'; -import { Language } from '@data/poe/schema'; -import { Item, ItemRarity } from '../../item'; -import { ItemFrameComponent } from './item-frame.component'; - -const gem: Item = { - rarity: ItemRarity.Gem -}; - - -describe('ItemFrameComponent', () => { - let component: ItemFrameComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - imports: [ - CommonModule, - HttpClientModule, - BrowserModule - ] - }).compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(ItemFrameComponent); - component = fixture.componentInstance; - component.item = gem; - component.queryItem = component.item; - component.language = Language.English; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src/app/shared/module/poe/price/item-price-prediction.service.spec.ts b/src/app/shared/module/poe/price/item-price-prediction.service.spec.ts index d5275702..e2395ec8 100644 --- a/src/app/shared/module/poe/price/item-price-prediction.service.spec.ts +++ b/src/app/shared/module/poe/price/item-price-prediction.service.spec.ts @@ -2,6 +2,8 @@ import { CommonModule } from '@angular/common'; import { HttpClientModule } from '@angular/common/http'; import { TestBed } from '@angular/core/testing'; import { BrowserModule } from '@angular/platform-browser'; +import { Language } from '@data/poe/schema'; +import { ContextService } from '../context'; import { Item } from '../item'; import { ItemPricePredictionService } from './item-price-prediction.service'; @@ -17,6 +19,10 @@ describe('ItemPricePredictionService', () => { ] }).compileComponents(); sut = TestBed.inject(ItemPricePredictionService); + const context = TestBed.inject(ContextService); + context.update({ + language: Language.English + }) }); it('should return items', (done) => { diff --git a/src/app/shared/module/poe/trade/statics/trade-static-frame/trade-static-frame.component.spec.ts b/src/app/shared/module/poe/trade/statics/trade-static-frame/trade-static-frame.component.spec.ts deleted file mode 100644 index a361d745..00000000 --- a/src/app/shared/module/poe/trade/statics/trade-static-frame/trade-static-frame.component.spec.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { HttpClientModule } from '@angular/common/http'; -import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; -import { BrowserModule } from '@angular/platform-browser'; -import { TradeStaticPipe } from '../trade-static.pipe'; -import { TradeStaticFrameComponent } from './trade-static-frame.component'; - - -describe('TradeStaticFrameComponent', () => { - let component: TradeStaticFrameComponent; - let fixture: ComponentFixture; - - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [TradeStaticFrameComponent, TradeStaticPipe], - imports: [ - CommonModule, - HttpClientModule, - BrowserModule, - ] - }) - .compileComponents(); - })); - - beforeEach(() => { - fixture = TestBed.createComponent(TradeStaticFrameComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -});