Fix tests
This commit is contained in:
@@ -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));
|
||||
});
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { module, test } from 'ember-qunit';
|
||||
import schemas from 'npm:kosmos-schemas';
|
||||
import tv4 from 'npm:tv4';
|
||||
import { ContributionSerializer } from 'kredits-web/lib/kredits';
|
||||
import ContributionSerializer from 'kredits-web/lib/kredits/serializers/contribution';
|
||||
|
||||
module('Serializers contribution');
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { module, test } from 'ember-qunit';
|
||||
import schemas from 'npm:kosmos-schemas';
|
||||
import tv4 from 'npm:tv4';
|
||||
import { ContributorSerializer } from 'kredits-web/lib/kredits';
|
||||
import ContributorSerializer from 'kredits-web/lib/kredits/serializers/contributor';
|
||||
|
||||
module('Serializers contributor');
|
||||
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
import { moduleFor, test } from 'ember-qunit';
|
||||
|
||||
moduleFor('service:ipfs', 'Unit | Service | ipfs', {
|
||||
// Specify the other units that are required for this test.
|
||||
// needs: ['service:foo']
|
||||
});
|
||||
|
||||
// Replace this with your real tests.
|
||||
test('it exists', function(assert) {
|
||||
let service = this.subject();
|
||||
assert.ok(service);
|
||||
});
|
||||
Reference in New Issue
Block a user