mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-15 05:53:03 +00:00
[TLC-254] mock config data service, get type in form builder service+test
This commit is contained in:
@@ -897,7 +897,7 @@ describe('FormBuilderService test suite', () => {
|
||||
});
|
||||
|
||||
it(`should request the ${typeFieldProp} property and set value "dc_type"`, () => {
|
||||
service.setTypeBindFieldFromConfig();
|
||||
// This should have been called in the service constructor
|
||||
expect(configSpy.findByPropertyName).toHaveBeenCalledTimes(1);
|
||||
expect(configSpy.findByPropertyName).toHaveBeenCalledWith(typeFieldProp);
|
||||
expect(service.getTypeField()).toEqual('dc_type');
|
||||
|
Reference in New Issue
Block a user