Skip to content

Commit e84c160

Browse files
committed
refactor: use the setLocale test helper from ember-intl
1 parent eb0b3ae commit e84c160

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/acceptance/users-test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
waitFor,
1010
} from "@ember/test-helpers";
1111
import { setupApplicationTest } from "dummy/tests/helpers";
12+
import { setLocale } from "ember-intl/test-support";
1213
import { module, test } from "qunit";
1314

1415
import setupRequestAssertions from "./../helpers/assert-request";
@@ -110,7 +111,7 @@ module("Acceptance | users", function (hooks) {
110111
const user = this.server.create("user", {
111112
isActive: true,
112113
});
113-
this.intl.locale = ["en", "de"];
114+
await setLocale(["en"]);
114115

115116
await visit(`/users/${user.id}`);
116117
// eslint-disable-next-line ember/no-settled-after-test-helper
@@ -130,7 +131,7 @@ module("Acceptance | users", function (hooks) {
130131
const user = this.server.create("user", {
131132
isActive: true,
132133
});
133-
this.intl.locale = ["en", "de"];
134+
await setLocale(["en"]);
134135

135136
await visit(`/users/${user.id}`);
136137
// eslint-disable-next-line ember/no-settled-after-test-helper

0 commit comments

Comments
 (0)