Skip to content

Commit

Permalink
DEV: new API s/replaceCurrentUser/updateCurrentUser
Browse files Browse the repository at this point in the history
  • Loading branch information
jjaffeux committed Jun 14, 2019
1 parent 28df4e2 commit f161b0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/javascripts/acceptance/self-approve-desktop-test.js.es6
@@ -1,4 +1,4 @@
import { replaceCurrentUser, acceptance } from "helpers/qunit-helpers";
import { updateCurrentUser, acceptance } from "helpers/qunit-helpers";
import Fixtures from "fixtures/topic";

acceptance("review desktop", {
Expand All @@ -25,7 +25,7 @@ QUnit.test("shows approve button by default", async assert => {
});

QUnit.test("hides approve button if user is self", async assert => {
replaceCurrentUser({ id: 1 });
updateCurrentUser({ id: 1 });

await visit("/t/this-is-a-test-topic/9/1");

Expand Down
4 changes: 2 additions & 2 deletions test/javascripts/acceptance/self-approve-mobile-test.js.es6
@@ -1,5 +1,5 @@
import selectKit from "helpers/select-kit-helper";
import { replaceCurrentUser, acceptance } from "helpers/qunit-helpers";
import { updateCurrentUser, acceptance } from "helpers/qunit-helpers";
import Fixtures from "fixtures/topic";

acceptance("review mobile", {
Expand Down Expand Up @@ -30,7 +30,7 @@ QUnit.test("shows approve button by default", async assert => {
});

QUnit.test("hides approve button if user is self", async assert => {
replaceCurrentUser({ id: 1 });
updateCurrentUser({ id: 1 });

await visit("/t/this-is-a-test-topic/9/1");

Expand Down

0 comments on commit f161b0c

Please sign in to comment.