Improve test descriptions

This commit is contained in:
2025-02-17 09:09:52 +04:00
parent 14da36b806
commit 62388a0488
+3 -3
View File
@@ -17,15 +17,15 @@ module('Unit | Controller | Dashboard', function(hooks) {
}); });
}; };
test('doesn\'t contain people with 0 balance', function(assert) { test('kreditsToplistSorted()', function(assert) {
const controller = this.owner.lookup('controller:dashboard'); const controller = this.owner.lookup('controller:dashboard');
addFixtures(controller); addFixtures(controller);
const kreditsToplistSorted = controller.get('kreditsToplistSorted'); const kreditsToplistSorted = controller.get('kreditsToplistSorted');
assert.equal(kreditsToplistSorted.length, 3, assert.equal(kreditsToplistSorted.length, 3,
'kreditsToplist contains all contributors with kredits'); 'contains all contributors with kredits');
assert.ok(isEmpty(kreditsToplistSorted.findBy('github_username', 'mouse')), assert.ok(isEmpty(kreditsToplistSorted.findBy('github_username', 'mouse')),
'kreditsToplist does not contain contributors with 0 kredits'); 'does not contain contributors with 0 kredits');
}); });
}); });