Use describe() instead of context() in tests
This commit is contained in:
parent
a53e086855
commit
c08f6723be
|
@ -21,7 +21,7 @@ describe('ui/filter_bar/lib', function () {
|
|||
};
|
||||
}));
|
||||
|
||||
context('when given a filter that is not match_all', function () {
|
||||
describe('when given a filter that is not match_all', function () {
|
||||
it('filter is rejected', function (done) {
|
||||
delete filter.match_all;
|
||||
mapMatchAll(filter).catch(result => {
|
||||
|
@ -32,7 +32,7 @@ describe('ui/filter_bar/lib', function () {
|
|||
});
|
||||
});
|
||||
|
||||
context('when given a match_all filter', function () {
|
||||
describe('when given a match_all filter', function () {
|
||||
let result;
|
||||
beforeEach(function () {
|
||||
mapMatchAll(filter).then(r => result = r);
|
||||
|
|
|
@ -64,7 +64,7 @@ describe('Filter Manager', function () {
|
|||
});
|
||||
});
|
||||
|
||||
context('when given params where one side is infinite', function () {
|
||||
describe('when given params where one side is infinite', function () {
|
||||
let filter;
|
||||
beforeEach(function () {
|
||||
filter = fn(indexPattern.fields.byName['script number'], { gte: 0, lt: Infinity }, indexPattern);
|
||||
|
@ -90,7 +90,7 @@ describe('Filter Manager', function () {
|
|||
});
|
||||
});
|
||||
|
||||
context('when given params where both sides are infinite', function () {
|
||||
describe('when given params where both sides are infinite', function () {
|
||||
let filter;
|
||||
beforeEach(function () {
|
||||
filter = fn(indexPattern.fields.byName['script number'], { gte: -Infinity, lt: Infinity }, indexPattern);
|
||||
|
|
Loading…
Reference in a new issue