a sea of missing semicolons

This commit is contained in:
Joe Fleming 2015-11-11 15:47:02 -07:00
parent 1387efb92b
commit e86da76d86
9 changed files with 17 additions and 17 deletions

View file

@ -112,7 +112,7 @@ describe('scenario manager', function () {
it('should reject if the scenario is not specified', function () {
return manager.load()
.then(function () {
throw new Error('Promise should reject')
throw new Error('Promise should reject');
})
.catch(function () { return; });
});
@ -120,7 +120,7 @@ describe('scenario manager', function () {
it('should reject if the scenario is not defined', function () {
return manager.load('idonotexist')
.then(function () {
throw new Error('Promise should reject')
throw new Error('Promise should reject');
})
.catch(function () { return; });
});
@ -130,7 +130,7 @@ describe('scenario manager', function () {
it('should reject if the scenario is not specified', function () {
return manager.unload()
.then(function () {
throw new Error('Promise should reject')
throw new Error('Promise should reject');
})
.catch(function () { return; });
});
@ -138,7 +138,7 @@ describe('scenario manager', function () {
it('should reject if the scenario is not defined', function () {
return manager.unload('idonotexist')
.then(function () {
throw new Error('Promise should reject')
throw new Error('Promise should reject');
})
.catch(function () { return; });
});

View file

@ -110,7 +110,7 @@ ScenarioManager.prototype.loadIfEmpty = function (id) {
if (response.count === 0) {
return self.load(id);
}
})
});
}))
.catch(function (reason) {
return self.load(id);

View file

@ -13,4 +13,4 @@ module.exports = {
}
}
}
}
};

View file

@ -94,7 +94,7 @@ define(function (require) {
return remote.getCurrentUrl()
.then(function (currentUrl) {
expect(currentUrl).to.not.contain('logstash-*');
})
});
})
.catch(common.handleError(this));
});

View file

@ -79,7 +79,7 @@ define(function (require) {
})
// check that its 0 (previous increase was cancelled)
.then(function getPopularity() {
return settingsPage.getPopularity()
return settingsPage.getPopularity();
})
.then(function (popularity) {
expect(popularity).to.be('0');

View file

@ -13,9 +13,9 @@ define(function (require) {
bdd.before(function () {
common = new Common(this.remote);
settingsPage = new SettingsPage(this.remote);
remote = this.remote
remote = this.remote;
return scenarioManager.reload('emptyKibana')
return scenarioManager.reload('emptyKibana');
});
var columns = [{
@ -23,21 +23,21 @@ define(function (require) {
first: '@message',
last: 'xss.raw',
selector: function () {
return settingsPage.getTableRow(0, 0).getVisibleText()
return settingsPage.getTableRow(0, 0).getVisibleText();
}
}, {
heading: 'type',
first: '_source',
last: 'string',
selector: function () {
return settingsPage.getTableRow(0, 1).getVisibleText()
return settingsPage.getTableRow(0, 1).getVisibleText();
}
}];
columns.forEach(function (col) {
bdd.describe('sort by heading - ' + col.heading, function indexPatternCreation() {
bdd.before(function () {
return settingsPage.navigateTo()
return settingsPage.navigateTo();
});
bdd.beforeEach(function () {

View file

@ -18,8 +18,8 @@ define(function (require) {
bdd.before(function () {
return scenarioManager.reload('emptyKibana')
.then(function () {
return scenarioManager.loadIfEmpty('makelogs')
})
return scenarioManager.loadIfEmpty('makelogs');
});
});
bdd.after(function () {

View file

@ -22,7 +22,7 @@ define(function (require) {
.getVisibleText()
.then(function (text) {
expect(text.indexOf('plugin:kibana Ready')).to.be.above(-1);
})
});
})
.catch(common.handleError(self));
});

View file

@ -41,7 +41,7 @@ define(function (require) {
.then(function (currentUrl) {
var navSuccessful = new RegExp(appUrl).test(currentUrl);
if (!navSuccessful) throw new Error('App failed to load: ' + appName);
})
});
});
};