blob: 4495b7517837d20bf7f17f08150c9e1c7a98d2ee (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
module('process');
test('args.missing_is_zero doesn\'t throw a "args.data[0][0] is undefined" error', function() {
var data = [{"date": new Date('2014-02-02'), "value": 6}];
var params = {
data: data,
target: "#qunit-fixture",
missing_is_zero: true
};
MG.data_graphic(params);
equal(params.data.length, 1, 'args.data is defined');
});
|