Fix tests

This commit is contained in:
2018-04-09 02:26:03 +02:00
parent 7e04cef964
commit e527099b00
5 changed files with 8 additions and 20 deletions
+5 -5
View File
@@ -8,7 +8,7 @@ const {
} = Ember;
moduleFor('controller:index', 'Unit | Controller | index', {
needs: ['service:ipfs', 'service:kredits']
needs: ['service:kredits']
});
let addFixtures = function(controller) {
@@ -18,10 +18,10 @@ let addFixtures = function(controller) {
});
[
{ github_username: "neo", github_uid: "318", balance: 10000 },
{ github_username: "morpheus", github_uid: "843", balance: 15000 },
{ github_username: "trinity", github_uid: "123", balance: 5000 },
{ github_username: "mouse", github_uid: "696", balance: 0 }
{ github_username: "neo", github_uid: "318", balance: "10000" },
{ github_username: "morpheus", github_uid: "843", balance: "15000" },
{ github_username: "trinity", github_uid: "123", balance: "5000" },
{ github_username: "mouse", github_uid: "696", balance: "0" }
].forEach(fixture => {
controller.get('model.contributors').push(Contributor.create(fixture));
});