File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 99 waitFor ,
1010} from "@ember/test-helpers" ;
1111import { setupApplicationTest } from "dummy/tests/helpers" ;
12+ import { setLocale } from "ember-intl/test-support" ;
1213import { module , test } from "qunit" ;
1314
1415import 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
You can’t perform that action at this time.
0 commit comments