Skip to content

Commit

Permalink
successInfoMessage = 'The project has been generated.' (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomer-epstein authored Apr 6, 2020
1 parent 65a7259 commit a9e2438
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backend/src/vscode-youi-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
6 changes: 3 additions & 3 deletions backend/tests/vscode-youi-events.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});
Expand All @@ -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");
});
Expand All @@ -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");
});
});
Expand Down

0 comments on commit a9e2438

Please sign in to comment.