Process contribution data before loading models
This commit is contained in:
@@ -8,10 +8,10 @@ module('Unit | Utility | process-contributor-data', function() {
|
||||
|
||||
test('formats the data correctly', function(assert) {
|
||||
// TODO use integers everywhere for IDs
|
||||
assert.ok(typeof result.id == 'string');
|
||||
assert.ok(typeof result.balance == 'number');
|
||||
assert.ok(typeof result.totalKreditsEarned == 'number');
|
||||
assert.ok(typeof result.contributionsCount == 'number');
|
||||
assert.ok(typeof result.id === 'string');
|
||||
assert.ok(typeof result.balance === 'number');
|
||||
assert.ok(typeof result.totalKreditsEarned === 'number');
|
||||
assert.ok(typeof result.contributionsCount === 'number');
|
||||
});
|
||||
|
||||
test('copies other properties', function(assert) {
|
||||
|
||||
Reference in New Issue
Block a user