[test][xs]: fix for DataProxy test broken by changes in e6ce2ca533cf9ef60773280e51b866504e5047f5.

This commit is contained in:
Rufus Pollock 2012-03-14 18:43:42 +00:00
parent 3abca8c7c5
commit 2bf0f9681f

View File

@ -295,9 +295,9 @@ test('DataProxy Backend', function() {
});
dataset.fetch().done(function(dataset) {
deepEqual(['__id__', 'date', 'price'], _.pluck(dataset.fields.toJSON(), 'id'));
equal(null, dataset.docCount)
dataset.query().done(function(docList) {
deepEqual(['__id__', 'date', 'price'], _.pluck(dataset.fields.toJSON(), 'id'));
equal(null, dataset.docCount)
equal(10, docList.length)
equal("1950-01", docList.models[0].get('date'));
// needed only if not stubbing