Skip to content
Snippets Groups Projects
Commit f8f9d886 authored by Menou Lucas's avatar Menou Lucas
Browse files

Add tests for attribute-label

parent 73563e85
No related branches found
No related tags found
1 merge request!98(fix):Add OnInit method for the label to use on app-attribute-label
This commit is part of merge request !98. Comments created here will be created in the context of that merge request.
......@@ -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");
})
})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment