Skip to content

Commit

Permalink
fix(lint): fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
xmlking committed Oct 26, 2020
1 parent 5d2b545 commit ee9a2ea
Show file tree
Hide file tree
Showing 88 changed files with 784 additions and 598 deletions.
24 changes: 13 additions & 11 deletions apps/webapp/src/app/app.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TestBed, async, ComponentFixture } from '@angular/core/testing';
import { TestBed, waitForAsync, ComponentFixture } from '@angular/core/testing';
import { AppComponent } from './app.component';
import { RouterTestingModule } from '@angular/router/testing';
import { ServiceWorkerModule } from '@angular/service-worker';
Expand All @@ -7,18 +7,20 @@ describe('AppComponent', () => {
let component: AppComponent;
let fixture: ComponentFixture<AppComponent>;

beforeEach(async(async () => {
await TestBed.configureTestingModule({
imports: [RouterTestingModule, ServiceWorkerModule.register('', { enabled: false })],
declarations: [AppComponent],
}).compileComponents();
beforeEach(
waitForAsync(async () => {
await TestBed.configureTestingModule({
imports: [RouterTestingModule, ServiceWorkerModule.register('', { enabled: false })],
declarations: [AppComponent],
}).compileComponents();

// create component and test fixture
fixture = TestBed.createComponent(AppComponent);
// create component and test fixture
fixture = TestBed.createComponent(AppComponent);

// get test component from the fixture
component = fixture.debugElement.componentInstance;
}));
// get test component from the fixture
component = fixture.debugElement.componentInstance;
})
);

it('should create the webapp', async(() => {
expect(component).toBeTruthy();
Expand Down
14 changes: 8 additions & 6 deletions libs/admin/src/lib/admin.module.spec.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import { async, TestBed } from '@angular/core/testing';
import { waitForAsync, TestBed } from '@angular/core/testing';
import { AdminModule } from './admin.module';

describe('AdminModule', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [AdminModule],
}).compileComponents();
}));
beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
imports: [AdminModule],
}).compileComponents();
})
);

it('should create', () => {
expect(AdminModule).toBeDefined();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';

import { NotificationDetailComponent } from './notification-detail.component';

describe('NotificationDetailComponent', () => {
let component: NotificationDetailComponent;
let fixture: ComponentFixture<NotificationDetailComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [NotificationDetailComponent],
}).compileComponents();
}));
beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [NotificationDetailComponent],
}).compileComponents();
})
);

beforeEach(() => {
fixture = TestBed.createComponent(NotificationDetailComponent);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';

import { NotificationEditComponent } from './notification-edit.component';

describe('NotificationEditComponent', () => {
let component: NotificationEditComponent;
let fixture: ComponentFixture<NotificationEditComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [NotificationEditComponent],
}).compileComponents();
}));
beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [NotificationEditComponent],
}).compileComponents();
})
);

beforeEach(() => {
fixture = TestBed.createComponent(NotificationEditComponent);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';

import { SubscriptionDetailComponent } from './subscription-detail.component';

describe('SubscriptionDetailComponent', () => {
let component: SubscriptionDetailComponent;
let fixture: ComponentFixture<SubscriptionDetailComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [SubscriptionDetailComponent],
}).compileComponents();
}));
beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [SubscriptionDetailComponent],
}).compileComponents();
})
);

beforeEach(() => {
fixture = TestBed.createComponent(SubscriptionDetailComponent);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';

import { AdminLayoutComponent } from './admin-layout.component';

describe('AdminLayoutComponent', () => {
let component: AdminLayoutComponent;
let fixture: ComponentFixture<AdminLayoutComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [AdminLayoutComponent],
}).compileComponents();
}));
beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [AdminLayoutComponent],
}).compileComponents();
})
);

beforeEach(() => {
fixture = TestBed.createComponent(AdminLayoutComponent);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';

import { NotificationsComponent } from './notifications.component';

describe('NotificationsComponent', () => {
let component: NotificationsComponent;
let fixture: ComponentFixture<NotificationsComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [NotificationsComponent],
}).compileComponents();
}));
beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [NotificationsComponent],
}).compileComponents();
})
);

beforeEach(() => {
fixture = TestBed.createComponent(NotificationsComponent);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';

import { OverviewComponent } from './overview.component';

describe('OverviewComponent', () => {
let component: OverviewComponent;
let fixture: ComponentFixture<OverviewComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [OverviewComponent],
}).compileComponents();
}));
beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [OverviewComponent],
}).compileComponents();
})
);

beforeEach(() => {
fixture = TestBed.createComponent(OverviewComponent);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';

import { SubscriptionsComponent } from './subscriptions.component';

describe('SubscriptionsComponent', () => {
let component: SubscriptionsComponent;
let fixture: ComponentFixture<SubscriptionsComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [SubscriptionsComponent],
}).compileComponents();
}));
beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [SubscriptionsComponent],
}).compileComponents();
})
);

beforeEach(() => {
fixture = TestBed.createComponent(SubscriptionsComponent);
Expand Down
14 changes: 8 additions & 6 deletions libs/app-confirm/src/lib/app-confirm.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';

import { AppConfirmComponent } from './app-confirm.component';

describe('AppConfirmComponent', () => {
let component: AppConfirmComponent;
let fixture: ComponentFixture<AppConfirmComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [AppConfirmComponent],
}).compileComponents();
}));
beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [AppConfirmComponent],
}).compileComponents();
})
);

beforeEach(() => {
fixture = TestBed.createComponent(AppConfirmComponent);
Expand Down
14 changes: 8 additions & 6 deletions libs/app-confirm/src/lib/app-confirm.module.spec.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import { async, TestBed } from '@angular/core/testing';
import { waitForAsync, TestBed } from '@angular/core/testing';
import { AppConfirmModule } from './app-confirm.module';

describe('AppConfirmModule', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [AppConfirmModule],
}).compileComponents();
}));
beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
imports: [AppConfirmModule],
}).compileComponents();
})
);

it('should create', () => {
expect(AppConfirmModule).toBeDefined();
Expand Down
16 changes: 9 additions & 7 deletions libs/auth/src/lib/auth.state.spec.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
import { async, TestBed } from '@angular/core/testing';
import { waitForAsync, TestBed } from '@angular/core/testing';
import { NgxsModule, Store } from '@ngxs/store';
import { LogoutSuccess } from './auth.actions';
import { AuthState } from './auth.state';

describe('Auth', () => {
let store: Store;

beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [NgxsModule.forRoot([AuthState])],
}).compileComponents();
store = TestBed.inject(Store);
}));
beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
imports: [NgxsModule.forRoot([AuthState])],
}).compileComponents();
store = TestBed.inject(Store);
})
);

it('it toggles feed', () => {
store.dispatch(new LogoutSuccess());
Expand Down
14 changes: 8 additions & 6 deletions libs/auth/src/lib/components/login/login.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';

import { LoginComponent } from './login.component';

describe('LoginComponent', () => {
let component: LoginComponent;
let fixture: ComponentFixture<LoginComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [LoginComponent],
}).compileComponents();
}));
beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [LoginComponent],
}).compileComponents();
})
);

beforeEach(() => {
fixture = TestBed.createComponent(LoginComponent);
Expand Down
14 changes: 8 additions & 6 deletions libs/chat-box/src/lib/chat-box.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';

import { ChatBoxComponent } from './chat-box.component';

describe('ChatBoxComponent', () => {
let component: ChatBoxComponent;
let fixture: ComponentFixture<ChatBoxComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ChatBoxComponent],
}).compileComponents();
}));
beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [ChatBoxComponent],
}).compileComponents();
})
);

beforeEach(() => {
fixture = TestBed.createComponent(ChatBoxComponent);
Expand Down
14 changes: 8 additions & 6 deletions libs/chat-box/src/lib/chat-box.module.spec.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import { async, TestBed } from '@angular/core/testing';
import { waitForAsync, TestBed } from '@angular/core/testing';
import { ChatBoxModule } from './chat-box.module';

describe('ChatBoxModule', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [ChatBoxModule],
}).compileComponents();
}));
beforeEach(
waitForAsync(() => {
TestBed.configureTestingModule({
imports: [ChatBoxModule],
}).compileComponents();
})
);

it('should create', () => {
expect(ChatBoxModule).toBeDefined();
Expand Down
Loading

0 comments on commit ee9a2ea

Please sign in to comment.