mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 20:08:26 +00:00
Fix incorrect test.
This commit is contained in:
parent
1171936850
commit
d970f4d3d8
@ -45,14 +45,14 @@ componentTest('multiple options in descending order', {
|
|||||||
Em.Object.create({ votes: 4}),
|
Em.Object.create({ votes: 4}),
|
||||||
Em.Object.create({ votes: 1})
|
Em.Object.create({ votes: 1})
|
||||||
],
|
],
|
||||||
voters: 9
|
voters: 12
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
test(assert) {
|
test(assert) {
|
||||||
assert.equal(this.$('.option .percentage:eq(0)').text(), '55%');
|
assert.equal(this.$('.option .percentage:eq(0)').text(), '41%');
|
||||||
assert.equal(this.$('.option .percentage:eq(1)').text(), '44%');
|
assert.equal(this.$('.option .percentage:eq(1)').text(), '33%');
|
||||||
assert.equal(this.$('.option .percentage:eq(2)').text(), '22%');
|
assert.equal(this.$('.option .percentage:eq(2)').text(), '16%');
|
||||||
assert.equal(this.$('.option .percentage:eq(3)').text(), '11%');
|
assert.equal(this.$('.option .percentage:eq(3)').text(), '8%');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user