added description of blocks spec and removed console logs

This commit is contained in:
Darren Nelsen 2018-04-23 14:35:53 -04:00
parent ddcbeba327
commit ca69a445ff
2 changed files with 1 additions and 3 deletions

View File

@ -30,7 +30,7 @@ describe('Blocks Provider', () => {
}); });
})); }));
it('should ', inject([BlocksProvider, MockBackend], (blocksProvider, mockBackend) => { it('should get blocks', inject([BlocksProvider, MockBackend], (blocksProvider, mockBackend) => {
const mockResponse: string = `{"blocks":[ const mockResponse: string = `{"blocks":[
{"height":1563,"size":228,"virtualSize":228,"hash":"489e6480e453d763f58535d0ee01caf12aaaa14950af795b497b227fdbfbc502","time":1522354162,"txlength":1,"poolInfo":{}}, {"height":1563,"size":228,"virtualSize":228,"hash":"489e6480e453d763f58535d0ee01caf12aaaa14950af795b497b227fdbfbc502","time":1522354162,"txlength":1,"poolInfo":{}},
{"height":1562,"size":228,"virtualSize":228,"hash":"48d7d1881936792f70ace3cdd1a7c4c1fd23271012f91158e3dcd5e41bcbcc8b","time":1522354162,"txlength":1,"poolInfo":{}}, {"height":1562,"size":228,"virtualSize":228,"hash":"48d7d1881936792f70ace3cdd1a7c4c1fd23271012f91158e3dcd5e41bcbcc8b","time":1522354162,"txlength":1,"poolInfo":{}},

View File

@ -26,10 +26,8 @@ export class CurrencyProvider {
this.currencySymbol = this.defaultCurrency; this.currencySymbol = this.defaultCurrency;
let url: string = this.api.apiPrefix + 'explorers'; let url: string = this.api.apiPrefix + 'explorers';
console.log('exploers url is', url);
this.http.get(url).subscribe( this.http.get(url).subscribe(
(data) => { (data) => {
console.log('', data);
this.explorers = JSON.parse(data['_body']); this.explorers = JSON.parse(data['_body']);
}, },
(err) => { (err) => {