Skip to content

Commit 87b280f

Browse files
committed
test: fix failling test
1 parent b1cfbcc commit 87b280f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/loader.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ it('creates a file for each lang', () => {
88

99
expect(files.length).toBe(3);
1010
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');
1213

1314
const langEn = JSON.parse(fs.readFileSync(files[0].path).toString());
1415
expect(langEn['auth.failed']).toBe('These credentials do not match our records.');
1516
expect(langEn['auth.foo.level1.level2']).toBe('baren');
1617

17-
const langPt = JSON.parse(fs.readFileSync(files[1].path).toString());
18+
const langPt = JSON.parse(fs.readFileSync(files[2].path).toString());
1819
expect(langPt['auth.failed']).toBe('As credenciais indicadas não coincidem com as registadas no sistema.');
1920
expect(langPt['auth.foo.level1.level2']).toBe('barpt');
2021
});

0 commit comments

Comments
 (0)