Skip to content

Commit

Permalink
Fix PanelBuilder tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromemacias committed Jun 2, 2015
1 parent ce9d469 commit 87b12fd
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe("PanelBuilder", function () {
describe('getPanelsData', function() {

it('should retrieve panels', function (done) {
var entity = new Entity(),
var entity = new Entity('myEntity'),
view1 = new DashboardView('view1')
.title('dashboard1')
.setEntity(entity)
Expand Down Expand Up @@ -85,8 +85,14 @@ function getPanelBuilder(dashboardViews, responses) {
};
};
var location = { search: function() { return {}; } };
var retrieveQueries = { getAll: function() {} };
var readQueries = {
getAll: function() {
return mixins.buildPromise({ data: [] });
},
getFilteredReferenceData: function() { return {}; },
getOptimizedReferencedData: function() { return {}; }
};
var AdminDescription = { getDataStore: function() { return new DataStore(); } };

return new PanelBuilder(q, location, retrieveQueries, Configuration, AdminDescription);
return new PanelBuilder(q, location, readQueries, Configuration, AdminDescription);
}

0 comments on commit 87b12fd

Please sign in to comment.