From a9e2438dac9e9dcd3002c620fcd2586d0bf61899 Mon Sep 17 00:00:00 2001 From: Tomer Epstein <57438361+tomer-epstein@users.noreply.github.com> Date: Mon, 6 Apr 2020 19:41:28 +0300 Subject: [PATCH] successInfoMessage = 'The project has been generated.' (#216) --- backend/src/vscode-youi-events.ts | 2 +- backend/tests/vscode-youi-events.spec.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/src/vscode-youi-events.ts b/backend/src/vscode-youi-events.ts index f02a00b50..15ecc3298 100644 --- a/backend/src/vscode-youi-events.ts +++ b/backend/src/vscode-youi-events.ts @@ -76,7 +76,7 @@ export class VSCodeYouiEvents implements YouiEvents { } } - const successInfoMessage = "The project has been successfully generated."; + const successInfoMessage = "The project has been generated."; if (_.isEmpty(items)) { return vscode.window.showInformationMessage(successInfoMessage); } diff --git a/backend/tests/vscode-youi-events.spec.ts b/backend/tests/vscode-youi-events.spec.ts index 1145689c4..2bca5bcab 100644 --- a/backend/tests/vscode-youi-events.spec.ts +++ b/backend/tests/vscode-youi-events.spec.ts @@ -60,7 +60,7 @@ describe('vscode-youi-events unit test', () => { const actionName = 'Add to Workspace'; _.set(vscode, "workspace.workspaceFolders", [{}]); windowMock.expects("showInformationMessage"). - withExactArgs('The project has been successfully generated.\nWhat would you like to do with it?', actionName).resolves(actionName); + withExactArgs('The project has been generated.\nWhat would you like to do with it?', actionName).resolves(actionName); workspaceMock.expects("updateWorkspaceFolders").withArgs(1, null).resolves(); return events.doGeneratorDone(true, "success message", "testDestinationRoot"); }); @@ -72,7 +72,7 @@ describe('vscode-youi-events unit test', () => { _.set(vscode, "workspace.getWorkspaceFolder", (): any => {return {uri: {fsPath: "testDestinationRoot"}};}); const actionName = 'Open in New Workspace'; windowMock.expects("showInformationMessage"). - withExactArgs('The project has been successfully generated.\nWhat would you like to do with it?', actionName).resolves(actionName); + withExactArgs('The project has been generated.\nWhat would you like to do with it?', actionName).resolves(actionName); commandsMock.expects("executeCommand").withArgs("vscode.openFolder").resolves(); return events.doGeneratorDone(true, "success message", "testDestinationRoot"); }); @@ -88,7 +88,7 @@ describe('vscode-youi-events unit test', () => { const events = new VSCodeYouiEvents(undefined, undefined, genFilter); eventsMock = sandbox.mock(events); eventsMock.expects("doClose"); - windowMock.expects("showInformationMessage").withExactArgs('The project has been successfully generated.').resolves(); + windowMock.expects("showInformationMessage").withExactArgs('The project has been generated.').resolves(); return events.doGeneratorDone(true, "success message", "testDestinationRoot"); }); });