mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
a sea of missing semicolons
This commit is contained in:
parent
1387efb92b
commit
e86da76d86
9 changed files with 17 additions and 17 deletions
8
test/fixtures/__tests__/scenarioManager.js
vendored
8
test/fixtures/__tests__/scenarioManager.js
vendored
|
@ -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; });
|
||||
});
|
||||
|
|
2
test/fixtures/scenarioManager.js
vendored
2
test/fixtures/scenarioManager.js
vendored
|
@ -110,7 +110,7 @@ ScenarioManager.prototype.loadIfEmpty = function (id) {
|
|||
if (response.count === 0) {
|
||||
return self.load(id);
|
||||
}
|
||||
})
|
||||
});
|
||||
}))
|
||||
.catch(function (reason) {
|
||||
return self.load(id);
|
||||
|
|
|
@ -13,4 +13,4 @@ module.exports = {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
@ -94,7 +94,7 @@ define(function (require) {
|
|||
return remote.getCurrentUrl()
|
||||
.then(function (currentUrl) {
|
||||
expect(currentUrl).to.not.contain('logstash-*');
|
||||
})
|
||||
});
|
||||
})
|
||||
.catch(common.handleError(this));
|
||||
});
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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 () {
|
||||
|
|
|
@ -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 () {
|
||||
|
|
|
@ -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));
|
||||
});
|
||||
|
|
|
@ -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);
|
||||
})
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue