-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix failure message when only adding/removing one key
- Loading branch information
Showing
11 changed files
with
45 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...-keys-report/__snapshots__/runner.js.snap → ...removes-keys/__snapshots__/runner.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
25 changes: 25 additions & 0 deletions
25
tests/check-adds-removes-single-key/__snapshots__/runner.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
exports[`test check-adds-removes-single-key:locales/de.json 1`] = ` | ||
"{ | ||
keep_me: keep de | ||
}" | ||
`; | ||
|
||
exports[`test check-adds-removes-single-key:locales/en.json 1`] = ` | ||
"{ | ||
add_me: add, | ||
keep_me: keep en | ||
}" | ||
`; | ||
|
||
exports[`test check-adds-removes-single-key:stderr.txt 1`] = ` | ||
" | ||
THROWN: | ||
Error: [i18next-json-sync] check failed -- keys are out of sync. Run again without check mode to synchronize files | ||
... | ||
" | ||
`; | ||
|
||
exports[`test check-adds-removes-single-key:stdout.txt 1`] = ` | ||
"Missing keys in actual/locales/de.json: add_me | ||
" | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { IOptions } from '../../src'; | ||
const options: IOptions = { | ||
check: true | ||
}; | ||
export = options; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"keep_me": "keep de" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"add_me": "add", | ||
"keep_me": "keep en" | ||
} |