Skip to content

Commit

Permalink
87968: Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ybnd committed Mar 10, 2022
1 parent fa3387d commit 9bddaf6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ import { createSuccessfulRemoteDataObject } from '../../../remote-data.utils';
import { FormService } from '../../form.service';
import { SubmissionService } from '../../../../submission/submission.service';
import { FormBuilderService } from '../form-builder.service';
import { NgxMaskModule } from 'ngx-mask';

describe('DsDynamicFormControlContainerComponent test suite', () => {

Expand Down Expand Up @@ -194,6 +195,7 @@ describe('DsDynamicFormControlContainerComponent test suite', () => {
DynamicFormsCoreModule.forRoot(),
SharedModule,
TranslateModule.forRoot(),
NgxMaskModule.forRoot(),
],
providers: [
DsDynamicFormControlContainerComponent,
Expand Down
2 changes: 1 addition & 1 deletion src/app/shared/form/builder/form-builder.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ describe('FormBuilderService test suite', () => {
new DynamicInputModel(
{
id: 'testInput',
mask: ['(', /[1-9]/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/],
mask: '(000) 000-0000',
}
),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ describe('ClaimedTaskActionsComponent', () => {
fixture.whenStable().then(() => {
const debugElement = fixture.debugElement.query(By.css('.workflow-view'));
expect(debugElement).toBeTruthy();
expect(debugElement.nativeElement.innerText).toBe('submission.workflow.generic.view');
expect(debugElement.nativeElement.innerText.trim()).toBe('submission.workflow.generic.view');
});

}));
Expand Down

0 comments on commit 9bddaf6

Please sign in to comment.