Added tests/type doc

This commit is contained in:
lotte
2019-01-07 12:01:09 +01:00
parent ab5cc1c961
commit 4ba6094da5
11 changed files with 163 additions and 18 deletions

View File

@@ -17,7 +17,6 @@ import { DataService } from '../../../core/data/data.service';
describe('EditComColPageComponent', () => {
let comp: EditComColPageComponent<DSpaceObject, NormalizedDSpaceObject>;
let fixture: ComponentFixture<EditComColPageComponent<DSpaceObject, NormalizedDSpaceObject>>;
let communityDataService: CommunityDataService;
let dsoDataService: CommunityDataService;
let router: Router;
@@ -45,13 +44,6 @@ describe('EditComColPageComponent', () => {
});
communityDataServiceStub = {
findById: (uuid) => observableOf(new RemoteData(false, false, true, null, Object.assign(new Community(), {
uuid: uuid,
metadata: [{
key: 'dc.title',
value: community.name
}]
}))),
update: (com, uuid?) => observableOf(new RemoteData(false, false, true, undefined, newCommunity))
};
@@ -84,7 +76,6 @@ describe('EditComColPageComponent', () => {
comp = fixture.componentInstance;
fixture.detectChanges();
dsoDataService = (comp as any).dsoDataService;
communityDataService = (comp as any).communityDataService;
router = (comp as any).router;
});