mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
fixing error with tests
This commit is contained in:
parent
20102c9663
commit
985e66fbd4
1 changed files with 19 additions and 19 deletions
|
@ -315,28 +315,28 @@ define(function (require) {
|
||||||
expect(minMax.max).to.be(331);
|
expect(minMax.max).to.be(331);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
|
||||||
describe('null value check', function () {
|
describe('null value check', function () {
|
||||||
it('should return false', function () {
|
it('should return false', function () {
|
||||||
var data = new Data(rowsData, {});
|
var data = new Data(rowsData, {});
|
||||||
expect(data.nullsPresent()).to.be(false);
|
expect(data.hasNullValues()).to.be(false);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should return true', function () {
|
||||||
|
var nullRowData = { rows: rowsData.rows.slice(0) };
|
||||||
|
nullRowData.rows.push({
|
||||||
|
'label': 'e',
|
||||||
|
'series': [
|
||||||
|
{
|
||||||
|
'label': '200',
|
||||||
|
'values': [{x: 0, y: 1}, {x: 1, y: null}, {x: 2, y: 3}]
|
||||||
|
}
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should return true', function () {
|
var data = new Data(nullRowData, {});
|
||||||
var nullRowData = { rows: rowsData.rows.slice(0) };
|
expect(data.hasNullValues()).to.be(true);
|
||||||
nullRowData.rows.push({
|
|
||||||
'label': 'e',
|
|
||||||
'series': [
|
|
||||||
{
|
|
||||||
'label': '200',
|
|
||||||
'values': [{x: 0, y: 1}, {x: 1, y: null}, {x: 2, y: 3}]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
});
|
|
||||||
|
|
||||||
var data = new Data(nullRowData, {});
|
|
||||||
expect(data.nullsPresent()).to.be(true);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue