Merge pull request #8590 from ramonornela/fix_lint_tests

style(nav): fix linters tests missing semicolon and spaces
This commit is contained in:
Manu Mtz.-Almeida
2016-10-09 23:42:07 +02:00
committed by GitHub

View File

@ -50,26 +50,26 @@ export class SecondPage {
index: this._index++ index: this._index++
}).then(() => { }).then(() => {
console.log('INSERTED! Stack:\n', this.navCtrl.getViews()); console.log('INSERTED! Stack:\n', this.navCtrl.getViews());
}) });
} }
removePage() { removePage() {
this.navCtrl.remove(1, 1).then(() => { this.navCtrl.remove(1, 1).then(() => {
console.log('REMOVED! Stack:\n', this.navCtrl.getViews()) console.log('REMOVED! Stack:\n', this.navCtrl.getViews());
}) });
} }
removeTwoPages() { removeTwoPages() {
this.navCtrl.remove(this.navCtrl.length() - 2, 2).then(() => { this.navCtrl.remove(this.navCtrl.length() - 2, 2).then(() => {
console.log('REMOVED TWO! Stack:\n', this.navCtrl.getViews()) console.log('REMOVED TWO! Stack:\n', this.navCtrl.getViews());
}) });
} }
testThing() { testThing() {
console.log('TEST THING'); console.log('TEST THING');
this.navCtrl.push(InsertPage).then(() => { this.navCtrl.push(InsertPage).then(() => {
console.log('Pushed', this.navCtrl.getViews()); console.log('Pushed', this.navCtrl.getViews());
console.log('Removing', this.navCtrl.getActive().index-1); console.log('Removing', this.navCtrl.getActive().index - 1);
this.navCtrl.remove(this.navCtrl.getActive().index - 1, 1); this.navCtrl.remove(this.navCtrl.getActive().index - 1, 1);
console.log('REMOVED! Stack:\n', this.navCtrl.getViews()); console.log('REMOVED! Stack:\n', this.navCtrl.getViews());
}); });