Yuki Takei 5 years ago
parent
commit
52fb28738f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/test/models/user.test.js

+ 2 - 2
src/test/models/user.test.js

@@ -17,7 +17,7 @@ describe('User', () => {
       username: 'usertest',
       username: 'usertest',
       email: 'usertest@example.com',
       email: 'usertest@example.com',
       password: 'usertestpass',
       password: 'usertestpass',
-      lang: 'en',
+      lang: 'en_US',
     });
     });
 
 
     done();
     done();
@@ -27,7 +27,7 @@ describe('User', () => {
     describe('The user', () => {
     describe('The user', () => {
       /* eslint-disable jest/no-test-callback */
       /* eslint-disable jest/no-test-callback */
       test('should created with createUserByEmailAndPassword', (done) => {
       test('should created with createUserByEmailAndPassword', (done) => {
-        User.createUserByEmailAndPassword('Example2 for User Test', 'usertest2', 'usertest2@example.com', 'usertest2pass', 'en', (err, userData) => {
+        User.createUserByEmailAndPassword('Example2 for User Test', 'usertest2', 'usertest2@example.com', 'usertest2pass', 'en_US', (err, userData) => {
           expect(err).toBeNull();
           expect(err).toBeNull();
           expect(userData).toBeInstanceOf(User);
           expect(userData).toBeInstanceOf(User);
           expect(userData.name).toBe('Example2 for User Test');
           expect(userData.name).toBe('Example2 for User Test');