fixing error with tests

This commit is contained in:
Shelby Sturgis 2015-07-14 11:47:34 -04:00
parent 20102c9663
commit 985e66fbd4

View file

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