Skip to content

Commit

Permalink
fix: hard coding hosted skill locale until it is supported by the bac…
Browse files Browse the repository at this point in the history
…kend (#368)

Co-authored-by: kakha urigashvili <[email protected]>
  • Loading branch information
kakhaUrigashvili and kakha urigashvili authored Jan 8, 2021
1 parent d517b52 commit 7bbbefc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/commands/new/wizard-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ function _getSkillLocale(userInput, callback) {
if (userInput.deploymentType !== CONSTANTS.DEPLOYER_TYPE.HOSTED.NAME) {
return callback();
}
ui.getSkillLocale((err, res) => callback(err || null, res));
// FIX hard coding until backend for hosted skills supports all locales
callback(null, 'en-US');
// ui.getSkillLocale((err, res) => callback(err || null, res));
}

function _getSkillDefaultRegion(userInput, callback) {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/commands/new/wizard-helper-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ describe('Commands new test - wizard helper test', () => {
});
});

it('| user input getSkillLocale fails, expect throw error', (done) => {
it.skip('| user input getSkillLocale fails, expect throw error', (done) => {
// setup
ui.selectSkillCodeLanguage.yields(null, TEST_LANGUAGE_RESPONSE);
ui.getDeploymentType.yields(null, TEST_HOSTED_DEPLOYMENT);
Expand Down

0 comments on commit 7bbbefc

Please sign in to comment.