removed commented out tests; changed return type

This commit is contained in:
Darren Nelsen 2018-02-21 15:37:45 -05:00
parent dac8620756
commit 722620f6f8
2 changed files with 1 additions and 54 deletions

View File

@ -42,57 +42,4 @@ describe('AppProvider', () => {
});
});
/*
xit('should get services info', (done) => {
inject([HttpTestingController, AppProvider], (httpMock: HttpTestingController, app: AppProvider) => {
const body = { content: 'blabla' };
const status = 200;
app.getServicesInfo().subscribe(response => {
console.log('response is', response);
expect(response).not.toBeNull();
done();
});
let jsonPathServices: string = 'assets/externalServices.json';
const mockReq = httpMock.expectOne(jsonPathServices);
mockReq.flush(body);
httpMock.verify();
})();
});
*/
/*
fit('should do something', (done) => {
inject([HttpTestingController, AppProvider], (httpMock: HttpTestingController, app: AppProvider) => {
const body = { content: 'blabla', name: 'testName' };
const status = 200;
app.load().then(response => {
console.log('response is', response);
expect(response).not.toBeNull();
done();
}).catch(err => {
console.log('err is', err);
console.log('HELLLO');
done();
});
let jsonPathApp: string = 'assets/appConfig.json';
const getInfoReq = httpMock.expectOne(jsonPathServices);
getInfoReq.flush(body, {
status: status
});
let jsonPathServices: string = 'assets/externalServices.json';
const getServicesReq = httpMock.expectOne(jsonPathServices);
getServicesReq.flush(body);
httpMock.verify();
})();
});
*/
});

View File

@ -35,7 +35,7 @@ export class ReleaseProvider {
};
}
public checkForUpdates(latestVersion: string, currentVersion?: string): any {
public checkForUpdates(latestVersion: string, currentVersion?: string): object {
if (!currentVersion) currentVersion = this.appVersion;
let result = {