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 3, 2015
1 parent 23c2438 commit 0dd441c
Showing 1 changed file with 10 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 @@ -84,8 +84,15 @@ function getPanelBuilder(dashboardViews, responses) {
}
};
};
var retrieveQueries = { getAll: function() {} };
var location = { search: function() { return {}; } };
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, retrieveQueries, Configuration, AdminDescription);
return new PanelBuilder(q, readQueries, Configuration, AdminDescription);
}

0 comments on commit 0dd441c

Please sign in to comment.