Use describe() instead of context() in tests

This commit is contained in:
Court Ewing 2015-09-15 16:53:32 -04:00
parent a53e086855
commit c08f6723be
2 changed files with 4 additions and 4 deletions

View file

@ -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);

View file

@ -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);