fix tests

This commit is contained in:
2018-04-04 12:49:41 +02:00
parent 6a5eb5a313
commit a418ddbe52
4 changed files with 12 additions and 6 deletions
+6 -1
View File
@@ -28,7 +28,12 @@ let addFixtures = function(controller) {
};
test('doesn\'t contain people with 0 balance', function(assert) {
let controller = this.subject();
// This is a bit strange... we do not want the controller to call the init function defined in the controller that
// initializes the event handlers on the contracts. Main reason is that we do not have proper contracts in test mode.
// this seems to work. but probably kills some controller stuff, which is fine in this test
let controller = this.subject({
init: function() { }
});
addFixtures(controller);
let contributorsSorted = controller.get('contributorsSorted');