Untitled

 avatar
unknown
plain_text
2 years ago
409 B
4
Indexable
if (args[0] === "test") {
  let rounds = parseInt(args[2], 10);
  if (isNaN(rounds)) rounds = 1;

  switch (args[1]) {
    case "draw": {
      test(
        generateCard,
        ["#EEC965", "./src/assets/test/hyunjin.png", args[3] || "HyunJin"],
        rounds,
        "Draw"
      );
      break;
    }
    default: {
      console.log("Please specify a function to test: draw");
      break;
    }
  }
} 
Editor is loading...