Skip to content

Commit 56f41f8

Browse files
Josue RuizUnleashedMind
andauthored
test(graphql-transformers-e2e-tests): add regex for noun change (#5802)
* test(graphql-transformers-e2e-tests): add regex for noun change noun can potentially change adding regex to keep end phrase similar * Update PredictionsTransformerTests.e2e.test.ts Co-authored-by: UnleashedMind <[email protected]>
1 parent 955022c commit 56f41f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/graphql-transformers-e2e-tests/src/__tests__/PredictionsTransformerTests.e2e.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ test('test translate and convert text to speech', async () => {
115115
});
116116

117117
test('test translate text individually', async () => {
118-
const germanTranslation = 'Dies ist ein Sprachtest';
118+
const germanTranslation = /((\bDies\b)|(\bdas\b)|(\bder\b)) ist ein Sprachtest/i;
119119
const response = await GRAPHQL_CLIENT.query(
120120
`query TranslateThis($input: TranslateThisInput!) {
121121
translateThis(input: $input)

0 commit comments

Comments
 (0)