hunk.code_window:       });
       }
     }, [authApiPlugin, props.createDatasourceFromForm]);
     const handleCreateNew = () => {
       if (pageId) {
         createNewApiAction(pageId, "API_PANE");
       }
     };
  
hunk.labels: keep keep keep keep add keep keep keep keep
hunk.after_edit:     AnalyticsUtil.logEvent("CREATE_DATA_SOURCE_CLICK", {
         source: "CREATE_NEW_API",
       });
  
hunk.file_path: app/client/src/pages/Editor/IntegrationEditor/NewApi.tsx
hunk.type: add
file: import { showBindingPrompt } from "./BindingPromptHelper";
  
  describe("Test to check conditons for showing binding prompt", () => {
    it("Show binding prompt", () => {
      const testCases = [
        { showEvaluatedValue: true, inputValue: "{" },
        { showEvaluatedValue: true, inputValue: "Some value" },
        { showEvaluatedValue: true, inputValue: "1" },
        { showEvaluatedValue: true, inputValue: "[1, 2, 3]" },
        { showEvaluatedValue: true, inputValue: "" },
        { showEvaluatedValue: true, inputValue: [1, 2, 3] },
        { showEvaluatedValue: true, inputValue: 1 },
        { showEvaluatedValue: true, inputValue: null },
        { showEvaluatedValue: true, inputValue: undefined },
      ];
  
      testCases.forEach((testCase) => {
        expect(
          showBindingPrompt(testCase.showEvaluatedValue, testCase.inputValue),
        ).toBeTruthy();
      });
    });
  
    it("Hide binding prompt", () => {
      const testCases = [
        { showEvaluatedValue: false, inputValue: "" },
        { showEvaluatedValue: false, inputValue: 1 },
        { showEvaluatedValue: false, inputValue: null },
        { showEvaluatedValue: false, inputValue: undefined },
        { showEvaluatedValue: true, inputValue: "Name: {{Widget.name}}" },
        { showEvaluatedValue: true, inputValue: "{{}}" },
      ];
  
      testCases.forEach((testCase) => {
        expect(
          showBindingPrompt(testCase.showEvaluatedValue, testCase.inputValue),
        ).toBeFalsy();
      });
    });
  });
  