Skip to content

Commit f7bcaaa

Browse files
committed
tmp: logging
Signed-off-by: Brian Nguyen <vanpho02@gmail.com>
1 parent fa13f5a commit f7bcaaa

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

commands/create-project-api.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ async function addSampleDataPlugin(projectName) {
162162
Logger.info("Added the sample data plugin successfully.");
163163
return true;
164164
} catch (error) {
165+
// eslint-disable-next-line no-console
165166
console.log(error);
166167
Logger.error(error);
167168
Logger.warn("Can't add the sample data plugin by error. Please add it manual.");

tests/create-api-project.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ describe("The create-project-api command", () => {
3030
expect(responseLines[1]).to.equal("reaction-cli: Project creation complete. Change to your directory and run `npm install`");
3131
}).timeout(5000);
3232

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

0 commit comments

Comments
 (0)