mirror of
https://github.com/discourse/discourse.git
synced 2025-06-21 22:35:39 +08:00
FEATURE: Allow single option polls (#8853)
This commit is contained in:

committed by
GitHub

parent
53529a3427
commit
5d97286fa7
@ -195,10 +195,17 @@ test("disableInsert", function(assert) {
|
||||
|
||||
controller.setProperties({
|
||||
pollType: controller.regularPollType,
|
||||
pollOptionsCount: 1
|
||||
pollOptionsCount: 0
|
||||
});
|
||||
|
||||
assert.equal(controller.disableInsert, true, "it should be true");
|
||||
|
||||
controller.setProperties({
|
||||
pollType: controller.regularPollType,
|
||||
pollOptionsCount: 1
|
||||
});
|
||||
|
||||
assert.equal(controller.disableInsert, false, "it should be false");
|
||||
});
|
||||
|
||||
test("number pollOutput", function(assert) {
|
||||
|
Reference in New Issue
Block a user