{ }}
- onTranslate={() => { }}
- onClear={() => { }}
- updateSQLQueries={() => { }}
+ onRun={() => {}}
+ onTranslate={() => {}}
+ onClear={() => {}}
+ updateSQLQueries={() => {}}
sqlTranslations={[]}
sqlQuery={''}
+ selectedDatasource={''}
/>
);
expect(document.body.children[0]).toMatchSnapshot();
@@ -40,6 +38,7 @@ describe(" spec", () => {
updateSQLQueries={updateSQLQueries}
sqlTranslations={[]}
sqlQuery={''}
+ selectedDatasource={'S3'}
/>
);
@@ -53,10 +52,5 @@ describe(" spec", () => {
fireEvent.click(getByText('Explain'));
expect(onTranslate).toHaveBeenCalledTimes(1);
-
});
-
});
-
-
-
diff --git a/public/components/SQLPage/__snapshots__/SQLPage.test.tsx.snap b/public/components/SQLPage/__snapshots__/SQLPage.test.tsx.snap
index 4db824cc..96850ed5 100644
--- a/public/components/SQLPage/__snapshots__/SQLPage.test.tsx.snap
+++ b/public/components/SQLPage/__snapshots__/SQLPage.test.tsx.snap
@@ -381,6 +381,24 @@ exports[` spec tests the action buttons 1`] = `
+
+
+