mirror of
https://github.com/discourse/discourse.git
synced 2025-09-08 12:06:51 +08:00
FIX: Set default value for poll result field (#10044)
This commit is contained in:
parent
1f5cecaf28
commit
40de535224
2 changed files with 6 additions and 0 deletions
|
@ -320,6 +320,11 @@ test("staff_only option is not present for non-staff", function(assert) {
|
|||
);
|
||||
});
|
||||
|
||||
test("poll result is always by default", function(assert) {
|
||||
const controller = this.subject();
|
||||
assert.equal(controller.pollResult, "always");
|
||||
});
|
||||
|
||||
test("staff_only option is present for staff", function(assert) {
|
||||
const controller = this.subject();
|
||||
controller.currentUser = { staff: true };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue