Skip to content

Commit 8ac6b4c

Browse files
committed
Use the spread operator while invoking SPINKIT_COMPONENTS
1 parent 16bafaa commit 8ac6b4c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/lib/ng-http-loader.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ import { SPINKIT_COMPONENTS } from './spinkits';
1717
@NgModule({
1818
declarations: [
1919
NgHttpLoaderComponent,
20-
SPINKIT_COMPONENTS,
20+
...SPINKIT_COMPONENTS,
2121
],
2222
imports: [
2323
CommonModule,
2424
HttpClientModule,
2525
],
2626
exports: [
2727
NgHttpLoaderComponent,
28-
SPINKIT_COMPONENTS,
28+
...SPINKIT_COMPONENTS,
2929
],
3030
providers: [
3131
PendingInterceptorServiceInterceptor,

src/test/components/ng-http-loader.component.outlet.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ describe('NgHttpLoaderComponentOutlet', () => {
2222

2323
beforeEach(async(() => {
2424
TestBed.configureTestingModule({
25-
declarations: [NgHttpLoaderComponent, SPINKIT_COMPONENTS],
25+
declarations: [NgHttpLoaderComponent, ...SPINKIT_COMPONENTS],
2626
imports: [HttpClientTestingModule],
2727
providers: [PendingInterceptorServiceInterceptor]
2828
})

src/test/components/ng-http-loader.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ describe('NgHttpLoaderComponent', () => {
2323

2424
beforeEach(async(() => {
2525
TestBed.configureTestingModule({
26-
declarations: [NgHttpLoaderComponent, SPINKIT_COMPONENTS],
26+
declarations: [NgHttpLoaderComponent, ...SPINKIT_COMPONENTS],
2727
imports: [HttpClientTestingModule],
2828
providers: [PendingInterceptorServiceInterceptor]
2929
})

0 commit comments

Comments
 (0)