Skip to content
This repository was archived by the owner on Apr 3, 2019. It is now read-only.

Commit 2e13d22

Browse files
committed
fix(tests): use a locale that is supported by the auth-mailer for header tests
1 parent c5c9571 commit 2e13d22

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

tests/lib/headerLang.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ define([
3030
var email = user + "@restmail.net";
3131
var password = "iliketurtles";
3232
var opts = {
33-
lang: 'it-ch;'
33+
lang: 'zh-cn;'
3434
};
3535

3636
return respond(client.signUp(email, password, opts), RequestMocks.signUp)
@@ -41,7 +41,7 @@ define([
4141
.then(
4242
function (emails) {
4343
assert.property(emails[0], 'headers');
44-
assert.equal(emails[0].headers['content-language'], 'it-ch');
44+
assert.equal(emails[0].headers['content-language'], 'zh-CN');
4545
},
4646
assert.notOk
4747
);
@@ -51,7 +51,7 @@ define([
5151
var account;
5252
var passwordForgotToken;
5353
var opts = {
54-
lang: 'it-CH;',
54+
lang: 'zh-CN',
5555
service: 'sync'
5656
};
5757

@@ -70,7 +70,7 @@ define([
7070
.then(
7171
function (emails) {
7272
assert.property(emails[1], 'headers');
73-
assert.equal(emails[1].headers['content-language'], 'it-ch');
73+
assert.equal(emails[1].headers['content-language'], 'zh-CN');
7474
},
7575
assert.notOk
7676
)
@@ -79,7 +79,7 @@ define([
7979
test('#recoveryEmailResendCode', function () {
8080
var user;
8181
var opts = {
82-
lang: 'it-CH;'
82+
lang: 'zh-CN'
8383
};
8484

8585
return accountHelper.newUnverifiedAccount()
@@ -97,7 +97,7 @@ define([
9797
.then(
9898
function (emails) {
9999
assert.property(emails[1], 'headers');
100-
assert.equal(emails[1].headers['content-language'], 'it-ch');
100+
assert.equal(emails[1].headers['content-language'], 'zh-CN');
101101
},
102102
assert.notOk
103103
)

tests/mocks/request.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ define(['client/lib/errors'], function (ERRORS) {
4343
},
4444
mailSignUpLang: {
4545
status: 200,
46-
body: '[{"html":"Mocked code=9001","headers": {"content-language": "it-ch" }}]'
46+
body: '[{"html":"Mocked code=9001","headers": {"content-language": "zh-CN" }}]'
4747
},
4848
mailServiceAndRedirect: {
4949
status: 200,
@@ -63,7 +63,7 @@ define(['client/lib/errors'], function (ERRORS) {
6363
},
6464
resetMailLang: {
6565
status: 200,
66-
body: '[{"html":"Mocked code=9001"}, {"html":"Mocked code=9001","headers": {"content-language": "it-ch" }}]'
66+
body: '[{"html":"Mocked code=9001"}, {"html":"Mocked code=9001","headers": {"content-language": "zh-CN" }}]'
6767
},
6868
recoveryEmailUnverified: {
6969
status: 200,

0 commit comments

Comments
 (0)