FIX qunit test runner for phantomjs 2.0

This commit is contained in:
Régis Hanol
2015-08-25 10:42:19 +02:00
parent 124fc4daf7
commit 294669c856
5 changed files with 31 additions and 23 deletions
@@ -16,7 +16,7 @@ test("Enter without an id", () => {
});
});
test("Enter a 404 topic", (assert) => {
test("Enter a 404 topic", assert => {
visit("/t/not-found/404");
andThen(() => {
assert.ok(!exists("#topic"), "The topic was not rendered");
@@ -24,7 +24,7 @@ test("Enter a 404 topic", (assert) => {
});
});
test("Enter without access", (assert) => {
test("Enter without access", assert => {
visit("/t/i-dont-have-access/403");
andThen(() => {
assert.ok(!exists("#topic"), "The topic was not rendered");
@@ -32,7 +32,7 @@ test("Enter without access", (assert) => {
});
});
test("Enter with 500 errors", (assert) => {
test("Enter with 500 errors", assert => {
visit("/t/throws-error/500");
andThen(() => {
assert.ok(!exists("#topic"), "The topic was not rendered");