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);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('null value check', function () {
|
||||
it('should return false', function () {
|
||||
var data = new Data(rowsData, {});
|
||||
expect(data.nullsPresent()).to.be(false);
|
||||
describe('null value check', function () {
|
||||
it('should return false', function () {
|
||||
var data = new Data(rowsData, {});
|
||||
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 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}]
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
var data = new Data(nullRowData, {});
|
||||
expect(data.nullsPresent()).to.be(true);
|
||||
});
|
||||
var data = new Data(nullRowData, {});
|
||||
expect(data.hasNullValues()).to.be(true);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue