mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 23:24:10 +08:00
fix poll test
This commit is contained in:
@ -220,7 +220,7 @@ test("number pollOutput", function(assert) {
|
|||||||
|
|
||||||
assert.equal(
|
assert.equal(
|
||||||
controller.get("pollOutput"),
|
controller.get("pollOutput"),
|
||||||
"[poll type=number min=1 max=20 step=1]\n[/poll]",
|
"[poll type=number min=1 max=20 step=1]\n[/poll]\n",
|
||||||
"it should return the right output"
|
"it should return the right output"
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -228,7 +228,7 @@ test("number pollOutput", function(assert) {
|
|||||||
|
|
||||||
assert.equal(
|
assert.equal(
|
||||||
controller.get("pollOutput"),
|
controller.get("pollOutput"),
|
||||||
"[poll type=number min=1 max=20 step=2]\n[/poll]",
|
"[poll type=number min=1 max=20 step=2]\n[/poll]\n",
|
||||||
"it should return the right output"
|
"it should return the right output"
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -236,7 +236,7 @@ test("number pollOutput", function(assert) {
|
|||||||
|
|
||||||
assert.equal(
|
assert.equal(
|
||||||
controller.get("pollOutput"),
|
controller.get("pollOutput"),
|
||||||
"[poll type=number min=1 max=20 step=2 public=true]\n[/poll]",
|
"[poll type=number min=1 max=20 step=2 public=true]\n[/poll]\n",
|
||||||
"it should return the right output"
|
"it should return the right output"
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -244,7 +244,7 @@ test("number pollOutput", function(assert) {
|
|||||||
|
|
||||||
assert.equal(
|
assert.equal(
|
||||||
controller.get("pollOutput"),
|
controller.get("pollOutput"),
|
||||||
"[poll type=number min=1 max=20 step=1 public=true]\n[/poll]",
|
"[poll type=number min=1 max=20 step=1 public=true]\n[/poll]\n",
|
||||||
"it should return the right output"
|
"it should return the right output"
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
@ -262,7 +262,7 @@ test("regular pollOutput", function(assert) {
|
|||||||
|
|
||||||
assert.equal(
|
assert.equal(
|
||||||
controller.get("pollOutput"),
|
controller.get("pollOutput"),
|
||||||
"[poll type=regular]\n* 1\n* 2\n[/poll]",
|
"[poll type=regular]\n* 1\n* 2\n[/poll]\n",
|
||||||
"it should return the right output"
|
"it should return the right output"
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -270,7 +270,7 @@ test("regular pollOutput", function(assert) {
|
|||||||
|
|
||||||
assert.equal(
|
assert.equal(
|
||||||
controller.get("pollOutput"),
|
controller.get("pollOutput"),
|
||||||
"[poll type=regular public=true]\n* 1\n* 2\n[/poll]",
|
"[poll type=regular public=true]\n* 1\n* 2\n[/poll]\n",
|
||||||
"it should return the right output"
|
"it should return the right output"
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
@ -289,7 +289,7 @@ test("multiple pollOutput", function(assert) {
|
|||||||
|
|
||||||
assert.equal(
|
assert.equal(
|
||||||
controller.get("pollOutput"),
|
controller.get("pollOutput"),
|
||||||
"[poll type=multiple min=1 max=2]\n* 1\n* 2\n[/poll]",
|
"[poll type=multiple min=1 max=2]\n* 1\n* 2\n[/poll]\n",
|
||||||
"it should return the right output"
|
"it should return the right output"
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -297,7 +297,7 @@ test("multiple pollOutput", function(assert) {
|
|||||||
|
|
||||||
assert.equal(
|
assert.equal(
|
||||||
controller.get("pollOutput"),
|
controller.get("pollOutput"),
|
||||||
"[poll type=multiple min=1 max=2 public=true]\n* 1\n* 2\n[/poll]",
|
"[poll type=multiple min=1 max=2 public=true]\n* 1\n* 2\n[/poll]\n",
|
||||||
"it should return the right output"
|
"it should return the right output"
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user