Skip to content

Commit

Permalink
test: πŸ’ Updated tests for multiline support jsverse#154
Browse files Browse the repository at this point in the history
βœ… Closes: jsverse#154
  • Loading branch information
Bisara96 committed Apr 21, 2023
1 parent c027bf8 commit bc587c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions __tests__/buildTranslationFiles.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ describe.each(formats)('buildTranslationFiles in %s', (fileFormat) => {
expected["Bob's Burgers"] =
expected['another(test)'] =
expected['last "one"'] =
expected['d' + 4] =
defaultValue;
createTranslations(config);
assertTranslation({ type, expected, fileFormat });
Expand Down Expand Up @@ -244,6 +245,7 @@ describe.each(formats)('buildTranslationFiles in %s', (fileFormat) => {
end: 23,
prefix: 'site-header.navigation.route',
}),
['site-header.navigation.route.' + 'd' + 4]: defaultValue,
...generateKeys({ end: 5, prefix: 'site-header.navigation' }),
...generateKeys({ end: 10, prefix: 'right-pane.actions' }),
...generateKeys({ end: 1, prefix: 'templates.translations' }),
Expand Down Expand Up @@ -483,6 +485,7 @@ describe.each(formats)('buildTranslationFiles in %s', (fileFormat) => {

it('should work with multiple inputs', () => {
let expected = generateKeys({ end: 39 });
expected['d' + 4] = defaultValue;
createTranslations(config);
assertTranslation({ type, expected, fileFormat });
});
Expand Down

0 comments on commit bc587c9

Please sign in to comment.