mirror of https://github.com/BTCPrivate/copay.git
removed commented out tests; changed return type
This commit is contained in:
parent
dac8620756
commit
722620f6f8
|
@ -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();
|
||||
})();
|
||||
});
|
||||
*/
|
||||
});
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue