Commits

Yura Bondarenko authored 26d45fd5e78
87968: Remove angular2-text-mask dependency
No tags

src/app/shared/form/builder/ds-dynamic-form-ui/models/custom-switch/custom-switch.component.spec.ts

Modified
1 1 import { DynamicFormsCoreModule, DynamicFormService } from '@ng-dynamic-forms/core';
2 2 import { FormGroup, ReactiveFormsModule } from '@angular/forms';
3 3 import { ComponentFixture, inject, TestBed, waitForAsync } from '@angular/core/testing';
4 4 import { DebugElement } from '@angular/core';
5 5 import { NoopAnimationsModule } from '@angular/platform-browser/animations';
6 -import { TextMaskModule } from 'angular2-text-mask';
7 6 import { By } from '@angular/platform-browser';
8 7 import { DynamicCustomSwitchModel } from './custom-switch.model';
9 8 import { CustomSwitchComponent } from './custom-switch.component';
10 9
11 10 describe('CustomSwitchComponent', () => {
12 11
13 12 const testModel = new DynamicCustomSwitchModel({ id: 'switch' });
14 13 const formModel = [testModel];
15 14 let formGroup: FormGroup;
16 15 let fixture: ComponentFixture<CustomSwitchComponent>;
17 16 let component: CustomSwitchComponent;
18 17 let debugElement: DebugElement;
19 18 let testElement: DebugElement;
20 19
21 20 beforeEach(waitForAsync(() => {
22 21 TestBed.configureTestingModule({
23 22 imports: [
24 23 ReactiveFormsModule,
25 24 NoopAnimationsModule,
26 - TextMaskModule,
27 25 DynamicFormsCoreModule.forRoot()
28 26 ],
29 27 declarations: [CustomSwitchComponent]
30 28
31 29 }).compileComponents().then(() => {
32 30 fixture = TestBed.createComponent(CustomSwitchComponent);
33 31
34 32 component = fixture.componentInstance;
35 33 debugElement = fixture.debugElement;
36 34 });

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut