Skip to content

Commit

Permalink
test(#72): skip test valid languages
Browse files Browse the repository at this point in the history
  • Loading branch information
vitonsky committed Jul 29, 2023
1 parent d3493b0 commit f7f6d03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/translators/__tests__/translators.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ translatorsForTest.forEach(({ translator: translatorClass, options }) => {

// TODO: enable test back or remove
// Disable test, to allow translators to return any lang codes they support
// Translator users must filter lang codes on their side, to ensure valid ISO codes
// Users must filter lang codes on their side, to ensure valid ISO codes
test.skip(`Method "getSupportedLanguages" return language codes`, () => {
const languages = translatorClass.getSupportedLanguages();
languages.forEach((language) => {
Expand Down
4 changes: 3 additions & 1 deletion src/tts/__tests__/tts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ ttsConstructor.map((ttsConstructor) => {
expect(parsedAudioFrame).toHaveProperty('bitrate');
});

test(`getSupportedLanguages returns array of supported languages`, async () => {
// Disable test, to allow TTS to return any lang codes they support
// Users must filter lang codes on their side, to ensure valid ISO codes
test.skip(`getSupportedLanguages returns array of supported languages`, async () => {
const supportedLanguages = ttsConstructor.getSupportedLanguages();

// Languages array are not empty
Expand Down

0 comments on commit f7f6d03

Please sign in to comment.