Browse Source

Fixing tests

pull/492/head
Sebastian 7 years ago
parent
commit
8e6ba755dc
  1. 2
      frontend/app/features/content/pages/content/content-field.component.ts
  2. 2
      frontend/app/framework/angular/forms/forms-helper.spec.ts

2
frontend/app/features/content/pages/content/content-field.component.ts

@ -90,7 +90,7 @@ export class ContentFieldComponent implements DoCheck, OnChanges {
this.isDifferent =
value$(this.fieldForm).pipe(
combineLatest(value$(this.fieldFormCompare),
(lhs, rhs) => !Types.equals(lhs, rhs)));
(lhs, rhs) => !Types.equals(lhs, rhs, true)));
}
}

2
frontend/app/framework/angular/forms/forms-helper.spec.ts

@ -41,7 +41,7 @@ describe('FormHelpers', () => {
form.disable();
form.setValue('4');
expect(values).toEqual(['1', '2', '3']);
expect(values).toEqual(['1', '2', '3', '4']);
});
});
});
Loading…
Cancel
Save