Permalink
Browse files

fix failing tests; content is required

  • Loading branch information...
1 parent fb9901c commit 0c7d5adb3780bcc66e8e8106ff6de78481c9cc26 @rmurphey committed Apr 15, 2012
Showing with 3 additions and 2 deletions.
  1. +1 −0 app/components/results.js
  2. +2 −2 tests/app/components/results.js
@@ -55,6 +55,7 @@ define([
twitter : 0
},
html = this.searchData.map(function(item) {
+ console.log('got here');
var type = item.get('type');
counts[type] += 1;
counts.all += 1;
@@ -18,8 +18,8 @@ define([
});
data = new Data([
- _.extend(_.clone(baseItem), { type : 'video' }),
- _.extend(_.clone(baseItem), { type : 'image' })
+ _.extend(_.clone(baseItem), { type : 'video', content : '' }),
+ _.extend(_.clone(baseItem), { type : 'image', content : '' })
]);
r = new Results({

0 comments on commit 0c7d5ad

Please sign in to comment.