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 @@ -8,13 +8,14 @@ it('creates a file for each lang', () => {
8
8
9
9
expect ( files . length ) . toBe ( 3 ) ;
10
10
expect ( files [ 0 ] . name ) . toBe ( 'php_en.json' ) ;
11
- expect ( files [ 1 ] . name ) . toBe ( 'php_pt.json' ) ;
11
+ expect ( files [ 1 ] . name ) . toBe ( 'php_fr.json' ) ;
12
+ expect ( files [ 2 ] . name ) . toBe ( 'php_pt.json' ) ;
12
13
13
14
const langEn = JSON . parse ( fs . readFileSync ( files [ 0 ] . path ) . toString ( ) ) ;
14
15
expect ( langEn [ 'auth.failed' ] ) . toBe ( 'These credentials do not match our records.' ) ;
15
16
expect ( langEn [ 'auth.foo.level1.level2' ] ) . toBe ( 'baren' ) ;
16
17
17
- const langPt = JSON . parse ( fs . readFileSync ( files [ 1 ] . path ) . toString ( ) ) ;
18
+ const langPt = JSON . parse ( fs . readFileSync ( files [ 2 ] . path ) . toString ( ) ) ;
18
19
expect ( langPt [ 'auth.failed' ] ) . toBe ( 'As credenciais indicadas não coincidem com as registadas no sistema.' ) ;
19
20
expect ( langPt [ 'auth.foo.level1.level2' ] ) . toBe ( 'barpt' ) ;
20
21
} ) ;
You can’t perform that action at this time.
0 commit comments