Skip to content
Snippets Groups Projects
Verified Commit 11fa4e18 authored by Sebastian Bergandy's avatar Sebastian Bergandy :keyboard:
Browse files

OZG-7473 improve tests

Based on CR comment.
parent 09e0dbb3
No related branches found
No related tags found
1 merge request!104Administration: Neu hinzugefügte Felder für Statistik speichern
......@@ -50,7 +50,7 @@ describe('AggregationMappingListComponent', () => {
expect(component.aggregationMappings).toEqual([]);
});
describe('_update', () => {
describe('update', () => {
it('should set list state resource', () => {
component.aggregationMappingListStateResource = aggregationMappingListStateResource;
......@@ -99,18 +99,16 @@ describe('AggregationMappingListComponent', () => {
fixture.detectChanges();
});
it('should have list', () => {
expectComponentExistsInTemplate(fixture, ListComponent);
});
it('should have spinner with state resource', () => {
expectComponentExistsInTemplate(fixture, SpinnerComponent);
const comp = getElementFromFixtureByType(fixture, SpinnerComponent);
expect(comp.stateResource).toEqual(aggregationMappingListStateResource);
});
it('should have list', () => {
expectComponentExistsInTemplate(fixture, ListComponent);
});
it('should have list item with mapping', () => {
expectComponentExistsInTemplate(fixture, AggregationMappingListItemComponent);
const comp = getElementFromFixtureByType(fixture, AggregationMappingListItemComponent);
expect(comp.aggregationMapping).toEqual(
getEmbeddedResources(aggregationMappingListStateResource, AggregationMappingListLinkRel.LIST)[0],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment