title: NodeJS : Refactoring a long switch statement
body: <p>I have a long <strong>switch</strong> statement and I need to replace it with more practice statement, any help please:</p>
  
  <pre><code>switch (global.testSuite) {
      case "cleanCache":
        testSenarios.cleanCache();
        break;
      case "setting":
        testSenarios.setting();
        break;
      case "installExtensions":
        testSenarios.installExtensions();
        break;
      case "addIndividualContact":
        testSenarios.addIndividualContact();
        break;
      case "addContact":
        testSenarios.addContact();
        break;
      case "add":
        testSenarios.add();
        break;
  }
  </code></pre>