Skip to content

Commit

Permalink
[Feature] Workaround localization test issue caused by Vscode 1.76.0
Browse files Browse the repository at this point in the history
Fixes #1927
  • Loading branch information
benjaminbi committed Mar 9, 2023
1 parent f8d9bc7 commit a36170a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/localization/localization.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ suite("localizationTest", function () {
"IncorrectCommand",
);
const iosDeployErrorChs = ErrorHelper.getInternalError(InternalErrorCode.IOSDeployNotFound);
test("localize should show correct message on Russian for CommandFailed error", (done: Mocha.Done) => {
test("localize should show correct message on ZH-CN for CommandFailed error", (done: Mocha.Done) => {
assert.strictEqual(
commandFailedErrorChs.message,
"执行命令 IncorrectCommand 时出错 (error code 101)",
);
done();
});

test("localize should show correct message on Russian for iOSDeployNotFound error", (done: Mocha.Done) => {
test("localize should show correct message on ZH-CN for iOSDeployNotFound error", (done: Mocha.Done) => {
assert.strictEqual(
iosDeployErrorChs.message,
"找不到 iOS 部署。请确保全局安装该部署(npm install -g ios-deploy) (error code 201)",
Expand Down
2 changes: 1 addition & 1 deletion test/localization/runTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ async function launchTests() {
extensionDevelopmentPath,
extensionTestsPath,
launchArgs: ["--locale", "zh-cn"],
version: "stable",
version: "1.75.0",
});
} catch (err) {
console.error(err);
Expand Down

0 comments on commit a36170a

Please sign in to comment.