Add failing test for vetoed amounts in toplist

This specifies the correct behaviour for unconfirmed kredits balances,
which is that amounts from vetoed contributions shouldn't be added at
all.
This commit is contained in:
basti committed 2019-05-06 18:32:00 +02:00
1 parent ef45d55521
commit d2bb70e8a1
1 file changed
+2 -2
+2 -2
View File
@@ -46,7 +46,7 @@ module('Unit | Service | kredits', function(hooks) {
const c3 = kreditsByContributor.find(k => k.contributor.id == 3);
assert.equal(c3.amountConfirmed, 0, 'correct amount confirmed');
assert.equal(c3.amountUnconfirmed, 6500, 'correct amount unconfirmed');
assert.equal(c3.amountTotal, 6500, 'correct amount total');
assert.equal(c3.amountUnconfirmed, 5000, 'correct amount unconfirmed');
assert.equal(c3.amountTotal, 5000, 'correct amount total');
});
});