// it('SchemaDiff Module', () => {
+ // // let baseUrl = url_for('schema_diff.initialize');
+ // // networkMock.onGet(url_for('debugger.start_listener', {'trans_id': params.transId})).reply(200, {'success':1,'errormsg':'','info':'','result':null,'data':{'status':true,'result':2}});
+ // // console.log('URL:: ', url_for('schema_diff.initialize', {}));
+ // networkMock.onGet(url_for('schema_diff.initialize', {})).reply(200,
+ // {
+ // 'success':1,
2. Do not use jquery to bind events.
+ if(window.opener) {
+ $(window).on('unload', function(ev) {
3. Functions like these which do not use state setters can be moved outside the component for better readability/performance.
+ function generateFinalScript(script_array, scriptHeader, script_body) {
+ _.each(Object.keys(script_array).reverse(), function (s) {
+ if (script_array[s].length > 0) {
4. Use gettext
+export const FILTER_NAME = {
+ IDENTICAL : 'Identical',
+ DIFFERENT :'Different',
5. This is not used anywhere. You can remove it:
def script():
"""render the required javascript"""
return Response(
- response=render_template("schema_diff/js/schema_diff.js", _=gettext),
+ response=render_templ