Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/forms/test/reactive_integration_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ import {
ValueChangeEvent,
} from '../src/model/abstract_model';

import {MyInput, MyInputForm} from './value_accessor_integration_spec';
import {MyInputForm} from './value_accessor_integration_spec';

// Produces a new @Directive (with a given selector) that represents a validator class.
function createValidatorClass(selector: string) {
Expand Down Expand Up @@ -820,7 +820,7 @@ describe('reactive forms integration tests', () => {
});

it('should not add disabled attribute to custom controls when disable() is called', async () => {
const fixture = initTest(MyInputForm, MyInput);
const fixture = TestBed.createComponent(MyInputForm);
const control = new FormControl('some value');
fixture.componentInstance.form = new FormGroup({login: control});
await fixture.whenStable();
Expand Down
4 changes: 2 additions & 2 deletions packages/forms/test/template_integration_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import {
Validator,
} from '../index';

import {NgModelCustomComp, NgModelCustomWrapper} from './value_accessor_integration_spec';
import {NgModelCustomWrapper} from './value_accessor_integration_spec';

describe('template-driven forms integration tests', () => {
useAutoTick();
Expand Down Expand Up @@ -1383,7 +1383,7 @@ describe('template-driven forms integration tests', () => {
});

it('should disable a custom control if disabled attr is added', async () => {
const fixture = initTest(NgModelCustomWrapper, NgModelCustomComp);
const fixture = TestBed.createComponent(NgModelCustomWrapper);
Comment thread
JeanMeche marked this conversation as resolved.
fixture.componentInstance.name = 'Nancy';
fixture.componentInstance.isDisabled = true;
await fixture.whenStable();
Expand Down
Loading
Loading