Skip to content

Commit c872e56

Browse files
committed
add the lang to the string
1 parent f91fe10 commit c872e56

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/unit/ChatGPTTranslatorTest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ describe('ChatGPTTranslator.performTranslation', () => {
1919
const invalidTranslation = '[it] Hello name!'; // missing ${...}
2020

2121
const originalHTML = '<img src="photo.jpg" alt="A dog" class="photo">';
22-
const validHTMLTranslation = '<img src="photo.jpg" alt="Un chien" class="photo">';
23-
const invalidHTMLTranslation = '<img src="different.jpg" alt="Un chien" class="photo">';
22+
const validHTMLTranslation = '[it] <img src="photo.jpg" alt="Un chien" class="photo">';
23+
const invalidHTMLTranslation = '[it] <img src="different.jpg" alt="Un chien" class="photo">'; // different src
2424

2525
let translator: ChatGPTTranslator;
2626

0 commit comments

Comments
 (0)