mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[color/tests] fix formatting with nested suites
This commit is contained in:
parent
292a490730
commit
d6320b395b
1 changed files with 8 additions and 12 deletions
|
@ -63,10 +63,8 @@ describe('Vislib Color Module Test Suite', function () {
|
|||
}).to.throwError();
|
||||
});
|
||||
|
||||
it(
|
||||
'should throw an error if array is not composed of numbers, strings, or ' +
|
||||
'undefined values',
|
||||
function () {
|
||||
context('when array is not composed of numbers, strings, or undefined values', function () {
|
||||
it('should throw an error', function () {
|
||||
expect(function () {
|
||||
getColors(arrayOfObjects);
|
||||
}).to.throwError();
|
||||
|
@ -78,13 +76,11 @@ describe('Vislib Color Module Test Suite', function () {
|
|||
expect(function () {
|
||||
getColors(arrayOfNullValues);
|
||||
}).to.throwError();
|
||||
}
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
it(
|
||||
'should not throw an error if input is an array of strings, numbers, or' +
|
||||
' undefined values',
|
||||
function () {
|
||||
context('when input is an array of strings, numbers, or undefined values', function () {
|
||||
it('should not throw an error', function () {
|
||||
expect(function () {
|
||||
getColors(arr);
|
||||
}).to.not.throwError();
|
||||
|
@ -96,8 +92,8 @@ describe('Vislib Color Module Test Suite', function () {
|
|||
expect(function () {
|
||||
getColors(arrayOfUndefinedValues);
|
||||
}).to.not.throwError();
|
||||
}
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
it('should be a function', function () {
|
||||
expect(typeof getColors).to.be('function');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue