Skip to content
Snippets Groups Projects

(fix):Add OnInit method for the label to use on app-attribute-label

Merged Menou Lucas requested to merge 130labels into develop
1 file
+ 12
1
Compare changes
  • Side-by-side
  • Inline
@@ -26,4 +26,15 @@ describe('[instance][search][components] AttributeLabelComponent', () => {
it('should create component', () => {
expect(component).toBeTruthy();
})
})
\ No newline at end of file
it('should choose the correct name onInit()', () => {
component.label = "coucou";
component.ngOnInit();
expect(component.name).toBe("coucou");
component.form_label = "coconut";
component.ngOnInit();
expect(component.name).toBe("coconut");
})
})
Loading