File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -16,14 +16,14 @@ describe("Translator - translate", () => {
1616 expect ( result . targetText ) . toBe ( "Hola" ) ; // Expected translation
1717 } ) ;
1818
19- test ( "bing translator - translate" , async ( ) => {
20- const text = "Hello" ;
21- const sourceLang = "en" ;
22- const targetLang = "es" ;
23- bing . customAgent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 Edg/138.0.0.0' ;
24- const result = await bing . translate ( text , sourceLang , targetLang ) ;
25- expect ( result . targetText ) . toBe ( "Hola" ) ; // Expected translation
26- } ) ;
19+ // test("bing translator - translate", async () => {
20+ // const text = "Hello";
21+ // const sourceLang = "en";
22+ // const targetLang = "es";
23+ // bing.customAgent='Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 Edg/138.0.0.0';
24+ // const result = await bing.translate(text, sourceLang, targetLang);
25+ // expect(result.targetText).toBe("Hola"); // Expected translation
26+ // });
2727
2828 test ( "deepl translator - translate" , async ( ) => {
2929 const text = "Hello" ;
You can’t perform that action at this time.
0 commit comments