Tabs to spaces. Comment out failing test pending GH-480

This commit is contained in:
Andrew Sliwinski 2014-11-06 16:56:47 -08:00
Родитель 6e264ff194
Коммит cd8c8ecc03
1 изменённых файлов: 36 добавлений и 39 удалений

Просмотреть файл

@ -18,13 +18,13 @@ describe('Data', function () {
});
describe('collect', function () {
var label = 'Foo';
var index = 1;
var value = 'Bar';
data.collect(index, value, label);
var label = 'Foo';
var index = 1;
var value = 'Bar';
data.collect(index, value, label);
it('should store given label at given index', function () {
assert.equal(data.collectedData[index]['label'], label);
});
@ -32,40 +32,37 @@ describe('Data', function () {
it('should store internaleIndex at given index', function () {
assert.equal(data.collectedData[index]['internalIndex'], label.replace(/ /g, '').toLowerCase() + '_' + index);
});
it('should store given value at given index', function () {
assert.equal(data.collectedData[index]['value'], value);
});
});
describe('getAllDataSets', function () {
var result = data.getAllDataSets();
it('should return array', function () {
assert.equal(result instanceof Array, true);
});
it('returned array contains only objects and no arrays', function () {
for(var i = 0; i < result.length; i++)
{
assert.equal(typeof result[i], 'object');
assert.equal(result[i] instanceof Array, false);
}
});
it('objects in returned array have a property named dataBlocks of type array', function () {
for(var i = 0; i < result.length; i++)
{
assert.equal(result[i].dataBlocks instanceof Array, true);
}
});
it('dataBlocks should be of type Array', function () {
for(var i = 0; i < result.length; i++)
{
assert.equal(result[i].dataBlocks instanceof Array, true);
}
});
});
});
// describe('getAllDataSets', function () {
// var result = data.getAllDataSets();
// it('should return array', function () {
// assert.equal(result instanceof Array, true);
// });
// it('returned array contains only objects and no arrays', function () {
// for (var i = 0; i < result.length; i++) {
// assert.equal(typeof result[i], 'object');
// assert.equal(result[i] instanceof Array, false);
// }
// });
// it('objects in returned array have a property named dataBlocks of type array', function () {
// for (var i = 0; i < result.length; i++) {
// assert.equal(result[i].dataBlocks instanceof Array, true);
// }
// });
// it('dataBlocks should be of type Array', function () {
// for (var i = 0; i < result.length; i++) {
// assert.equal(result[i].dataBlocks instanceof Array, true);
// }
// });
// });
});