mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Merge branch 'master' of github.com:elastic/kibana into fix/3944
This commit is contained in:
commit
f71f3a1cbb
3 changed files with 29 additions and 11 deletions
|
@ -71,6 +71,12 @@ module.exports = function (grunt) {
|
|||
cwd: '<%= server %>/config/',
|
||||
src: 'kibana.yml',
|
||||
dest: '<%= build %>/dist/kibana/config/'
|
||||
},
|
||||
{
|
||||
expand: true,
|
||||
cwd: '<%= bowerComponentsDir %>/ace-builds/src-noconflict/',
|
||||
src: 'worker-json.js',
|
||||
dest: '<%= build %>/dist/kibana/src/public/'
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
@ -13,21 +13,32 @@
|
|||
var SAUCELABS = !!(/saucelabs/i.test(window.location.search));
|
||||
var DISABLE_RESIZE_CHECKER = true;
|
||||
|
||||
|
||||
var mochaSuiteOn = mocha.suite.on;
|
||||
mocha.suite.on = function (eventName, fn) {
|
||||
if (eventName !== 'pre-require') {
|
||||
return mochaSuiteOn.call(this, eventName, fn);
|
||||
}
|
||||
|
||||
return mochaSuiteOn.call(this, eventName, function (context, file, mocha) {
|
||||
fn.call(this, context, file, mocha);
|
||||
|
||||
var contextDescribe = context.describe;
|
||||
context.describe = function (name, body) {
|
||||
if (!body && name && name instanceof Array) {
|
||||
contextDescribe(name[0], name[1]);
|
||||
} else {
|
||||
contextDescribe(name, body);
|
||||
}
|
||||
};
|
||||
});
|
||||
};
|
||||
|
||||
mocha.setup({
|
||||
ui: 'bdd',
|
||||
reporter: 'html'
|
||||
});
|
||||
|
||||
window.describe = (function (originalDescribe) {
|
||||
return function (name, body) {
|
||||
if (!body && name && name instanceof Array) {
|
||||
originalDescribe(name[0], name[1]);
|
||||
} else {
|
||||
originalDescribe(name, body);
|
||||
}
|
||||
};
|
||||
}(window.describe))
|
||||
|
||||
require.config({
|
||||
baseUrl: '/',
|
||||
paths: {
|
||||
|
@ -154,6 +165,7 @@
|
|||
});
|
||||
}
|
||||
|
||||
|
||||
if (COVERAGE) {
|
||||
setupCoverage(runTests);
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ define(function (require) {
|
|||
describe(require('specs/components/agg_types/_agg_params'));
|
||||
describe(require('specs/components/agg_types/_bucket_count_between'));
|
||||
describe(require('specs/components/agg_types/buckets/_histogram'));
|
||||
describe(require('specs/components/agg_types/buckets/date_histogram/_date_histogram'));
|
||||
describe(require('specs/components/agg_types/buckets/_date_histogram'));
|
||||
|
||||
describe('bucket aggs', function () {
|
||||
var bucketAggs;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue