Browse Source
Merge pull request #7807 from abpframework/test/remove-forward-ref
Removed forwardRef from AbstractNgModelComponent spec
pull/7813/head
Muhammed Altuğ
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
4 deletions
-
npm/ng-packs/packages/core/src/lib/tests/ng-model.component.spec.ts
|
|
|
@ -1,8 +1,8 @@ |
|
|
|
import { Component, forwardRef, Input, OnInit } from '@angular/core'; |
|
|
|
import { Component, Input, OnInit } from '@angular/core'; |
|
|
|
import { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms'; |
|
|
|
import { createHostFactory, SpectatorHost } from '@ngneat/spectator/jest'; |
|
|
|
import { AbstractNgModelComponent } from '../abstracts'; |
|
|
|
import { timer } from 'rxjs'; |
|
|
|
import { AbstractNgModelComponent } from '../abstracts'; |
|
|
|
|
|
|
|
@Component({ |
|
|
|
selector: 'abp-test', |
|
|
|
@ -10,8 +10,7 @@ import { timer } from 'rxjs'; |
|
|
|
providers: [ |
|
|
|
{ |
|
|
|
provide: NG_VALUE_ACCESSOR, |
|
|
|
// tslint:disable-next-line: no-forward-ref
|
|
|
|
useExisting: forwardRef(() => TestComponent), |
|
|
|
useExisting: TestComponent, |
|
|
|
multi: true, |
|
|
|
}, |
|
|
|
], |
|
|
|
|