Skip to content

Commit

Permalink
Removed image lazy loading from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremythuff committed Dec 15, 2020
1 parent 08a8a5e commit 70117b2
Show file tree
Hide file tree
Showing 19 changed files with 18 additions and 56 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Component, CUSTOM_ELEMENTS_SCHEMA, ViewChild } from '@angular/core';
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { MockStore, provideMockStore } from '@ngrx/store/testing';
import { LazyLoadImageModule } from 'ng-lazyload-image';
import { APP_CONFIG, testAppConfig } from '../shared/config';
import { WvrAlertComponent } from './wvr-alert.component';

Expand Down Expand Up @@ -30,8 +29,7 @@ describe('WvrAlertComponent', () => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [
BrowserAnimationsModule,
LazyLoadImageModule
BrowserAnimationsModule
],
providers: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Component, CUSTOM_ELEMENTS_SCHEMA, ViewChild } from '@angular/core';
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { provideMockStore } from '@ngrx/store/testing';
import { LazyLoadImageModule } from 'ng-lazyload-image';
import { APP_CONFIG, testAppConfig } from '../shared/config';
import { WvrButtonComponent } from './wvr-button.component';

Expand Down Expand Up @@ -32,8 +31,7 @@ describe('WvrButtonComponent', () => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [
BrowserAnimationsModule,
LazyLoadImageModule
BrowserAnimationsModule
],
providers: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Component, CUSTOM_ELEMENTS_SCHEMA, ViewChild } from '@angular/core';
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { provideMockStore } from '@ngrx/store/testing';
import { LazyLoadImageModule } from 'ng-lazyload-image';
import { APP_CONFIG, testAppConfig } from '../shared/config';
import { WvrCardComponent } from './wvr-card.component';

Expand Down Expand Up @@ -39,8 +38,7 @@ describe('WvrCardComponent', () => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [
BrowserAnimationsModule,
LazyLoadImageModule
BrowserAnimationsModule
],
declarations: [
WvrCardHostComponent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { provideMockStore } from '@ngrx/store/testing';
import { LazyLoadImageModule } from 'ng-lazyload-image';
import { APP_CONFIG, testAppConfig } from '../shared/config';
import { WvrColorPreviewComponent } from './wvr-color-preview.component';

Expand All @@ -16,8 +15,7 @@ describe('ColorPreviewComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [
BrowserAnimationsModule,
LazyLoadImageModule
BrowserAnimationsModule
],
providers: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NgbDropdown } from '@ng-bootstrap/ng-bootstrap';
import { provideMockStore } from '@ngrx/store/testing';
import { LazyLoadImageModule } from 'ng-lazyload-image';
import { APP_CONFIG, testAppConfig } from '../shared/config';
import { WvrDropdownComponent } from './wvr-dropdown.component';

Expand Down Expand Up @@ -33,8 +32,7 @@ describe('WvrDropdownComponent', () => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [
BrowserAnimationsModule,
LazyLoadImageModule
BrowserAnimationsModule
],
providers: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Component, CUSTOM_ELEMENTS_SCHEMA, ViewChild } from '@angular/core';
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { provideMockStore } from '@ngrx/store/testing';
import { LazyLoadImageModule } from 'ng-lazyload-image';
import { APP_CONFIG, testAppConfig } from '../shared/config';
import { WvrFooterComponent } from './wvr-footer.component';

Expand All @@ -28,8 +27,7 @@ describe('WvrFooterComponent', () => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [
BrowserAnimationsModule,
LazyLoadImageModule
BrowserAnimationsModule
],
providers: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Component, CUSTOM_ELEMENTS_SCHEMA, ViewChild } from '@angular/core';
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { provideMockStore } from '@ngrx/store/testing';
import { LazyLoadImageModule } from 'ng-lazyload-image';
import { APP_CONFIG } from '../shared/config/app-config';
import { testAppConfig } from '../shared/config/test-app-config';
import { WvrHeaderComponent } from './wvr-header.component';
Expand All @@ -29,8 +28,7 @@ describe('WvrHeaderComponent', () => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [
BrowserAnimationsModule,
LazyLoadImageModule
BrowserAnimationsModule
],
providers: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { ComponentFixture, inject, TestBed, waitForAsync } from '@angular/core/t
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { StoreModule } from '@ngrx/store';
import { provideMockStore } from '@ngrx/store/testing';
import { LazyLoadImageModule } from 'ng-lazyload-image';
import { metaReducers, ROOT_REDUCER } from '../core/store';
import { APP_CONFIG } from '../shared/config/app-config';
import { testAppConfig } from '../shared/config/test-app-config';
Expand Down Expand Up @@ -34,7 +33,6 @@ describe('WvrIconComponent', () => {
imports: [
HttpClientTestingModule,
BrowserAnimationsModule,
LazyLoadImageModule,
StoreModule.forRoot(ROOT_REDUCER, { metaReducers })
],
providers: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { provideMockStore } from '@ngrx/store/testing';
import { LazyLoadImageModule } from 'ng-lazyload-image';
import { APP_CONFIG, testAppConfig } from '../shared/config';
import { WvrItWorksComponent } from './wvr-it-works.component';

Expand All @@ -16,8 +15,7 @@ describe('WvrItWorksComponent', () => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [
BrowserAnimationsModule,
LazyLoadImageModule
BrowserAnimationsModule
],
declarations: [WvrItWorksComponent],
providers: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { provideMockStore } from '@ngrx/store/testing';
import { LazyLoadImageModule } from 'ng-lazyload-image';
import { APP_CONFIG, testAppConfig } from '../../shared/config';
import { WvrListItemComponent } from './wvr-list-item.component';

Expand All @@ -16,8 +15,7 @@ describe('WvrListItemComponent', () => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [
BrowserAnimationsModule,
LazyLoadImageModule
BrowserAnimationsModule
],
declarations: [WvrListItemComponent],
providers: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { provideMockStore } from '@ngrx/store/testing';
import { LazyLoadImageModule } from 'ng-lazyload-image';
import { APP_CONFIG, testAppConfig } from '../shared/config';
import { WvrListComponent } from './wvr-list.component';

Expand All @@ -16,8 +15,7 @@ describe('WvrListComponent', () => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [
BrowserAnimationsModule,
LazyLoadImageModule
BrowserAnimationsModule
],
declarations: [WvrListComponent],
providers: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Component, ViewChild } from '@angular/core';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { provideMockStore } from '@ngrx/store/testing';
import { LazyLoadImageModule } from 'ng-lazyload-image';
import { APP_CONFIG, testAppConfig } from '../../shared/config';
import { WvrManifestComponent } from '../wvr-manifest.component';
import { WvrManifestEntryComponent } from './wvr-manifest-entry.component';
Expand Down Expand Up @@ -32,8 +31,7 @@ describe('WvrManifestEntryComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [
BrowserAnimationsModule,
LazyLoadImageModule
BrowserAnimationsModule
],
declarations: [ WvrManifestTestComponent, WvrManifestComponent, WvrManifestEntryComponent ],
providers: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Component, ViewChild } from '@angular/core';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { provideMockStore } from '@ngrx/store/testing';
import { LazyLoadImageModule } from 'ng-lazyload-image';
import { APP_CONFIG, testAppConfig } from '../shared/config';
import { WvrManifestEntryComponent } from './wvr-manifest-entry/wvr-manifest-entry.component';
import { WvrManifestComponent } from './wvr-manifest.component';
Expand Down Expand Up @@ -34,8 +33,7 @@ describe('WvrManifestComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [
BrowserAnimationsModule,
LazyLoadImageModule
BrowserAnimationsModule
],
declarations: [
WvrManifestHostComponent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { provideMockStore } from '@ngrx/store/testing';
import { LazyLoadImageModule } from 'ng-lazyload-image';
import { APP_CONFIG, testAppConfig } from '../../shared/config';
import { WvrNavLiComponent } from './wvr-nav-li.component';

Expand All @@ -16,8 +15,7 @@ describe('WvrNavLiComponent', () => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [
BrowserAnimationsModule,
LazyLoadImageModule
BrowserAnimationsModule
],
declarations: [WvrNavLiComponent],
providers: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { provideMockStore } from '@ngrx/store/testing';
import { LazyLoadImageModule } from 'ng-lazyload-image';
import { Alignment } from '../shared/alignment.enum';
import { APP_CONFIG, testAppConfig } from '../shared/config';
import { WvrNavListComponent } from './wvr-nav-list.component';
Expand All @@ -17,8 +16,7 @@ describe('WvrNavListComponent', () => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [
BrowserAnimationsModule,
LazyLoadImageModule
BrowserAnimationsModule
],
declarations: [WvrNavListComponent],
providers: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { provideMockStore } from '@ngrx/store/testing';
import { LazyLoadImageModule } from 'ng-lazyload-image';
import { APP_CONFIG, testAppConfig } from '../../shared/config';
import { WvrTabsComponent } from '../wvr-tabs.component';
import { WvrTabComponent } from './wvr-tab.component';
Expand All @@ -20,8 +19,7 @@ describe('WvrTabComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [
BrowserAnimationsModule,
LazyLoadImageModule
BrowserAnimationsModule
],
declarations: [WvrTabsComponent, WvrTabComponent],
providers: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { provideMockStore } from '@ngrx/store/testing';
import { LazyLoadImageModule } from 'ng-lazyload-image';
import { APP_CONFIG, testAppConfig } from '../shared/config';
import { WvrTabComponent } from './wvr-tab/wvr-tab.component';
import { WvrTabsComponent } from './wvr-tabs.component';
Expand All @@ -19,8 +18,7 @@ describe('WvrTabsComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [
BrowserAnimationsModule,
LazyLoadImageModule
BrowserAnimationsModule
],
declarations: [WvrTabsComponent],
providers: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { provideMockStore } from '@ngrx/store/testing';
import { LazyLoadImageModule } from 'ng-lazyload-image';
import { APP_CONFIG, testAppConfig } from '../shared/config';
import { WvrTextComponent } from './wvr-text.component';

Expand All @@ -16,8 +15,7 @@ describe('WvrTextComponent', () => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [
BrowserAnimationsModule,
LazyLoadImageModule
BrowserAnimationsModule
],
declarations: [WvrTextComponent],
providers: [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { provideMockStore } from '@ngrx/store/testing';
import { LazyLoadImageModule } from 'ng-lazyload-image';
import { APP_CONFIG, testAppConfig } from '../shared/config';
import { WvrThemeComponent } from './wvr-theme.component';

Expand All @@ -15,8 +14,7 @@ describe('WvrThemeComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [
BrowserAnimationsModule,
LazyLoadImageModule
BrowserAnimationsModule
],
declarations: [ WvrThemeComponent ],
providers: [
Expand Down

0 comments on commit 70117b2

Please sign in to comment.