Skip to content

Commit

Permalink
tmp: logging
Browse files Browse the repository at this point in the history
Signed-off-by: Brian Nguyen <[email protected]>
  • Loading branch information
vanpho93 committed Jul 14, 2022
1 parent fa13f5a commit f7bcaaa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions commands/create-project-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ async function addSampleDataPlugin(projectName) {
Logger.info("Added the sample data plugin successfully.");
return true;
} catch (error) {
// eslint-disable-next-line no-console
console.log(error);
Logger.error(error);
Logger.warn("Can't add the sample data plugin by error. Please add it manual.");
Expand Down
5 changes: 3 additions & 2 deletions tests/create-api-project.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ describe("The create-project-api command", () => {
expect(responseLines[1]).to.equal("reaction-cli: Project creation complete. Change to your directory and run `npm install`");
}).timeout(5000);

it.only("should print the correct output when user run with --populate option", async () => {
console.log(123)
it("should print the correct output when user run with --populate option", async () => {
// eslint-disable-next-line no-console
console.log(123);
const response = await execute("./index.js", ["create-project", "api", "myshop", "--populate"]);
const responseLines = response.trim().split(EOL);
expect(responseLines[1]).equal("reaction-cli: Added the sample data plugin successfully.");
Expand Down

0 comments on commit f7bcaaa

Please sign in to comment.